Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Visual Basic (VB 4/5/6) » General Visual Basic » Searching Code


Searching CodeExpand / Collapse
Author
Message
Posted 8/18/2008 7:33:13 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/18/2008 7:34:09 AM
Posts: 1, Visits: 14
Dear All

I m working last 3 Month On this Invoicing Project. But I am facing a Problem about Invoice Number.Our Company requirement that Invoice Number will be Like this KS 808-01 and KM-808-01 One Thing is very Important In this No. This Format Is Look like this YearMonth-InvoiceNo.and Ofcourse it will change every month and year. I also want that Invoice Number will be auto generated with Add new Invoice Button Or Suggest Me what is the Better Option For this Scenerio.]

Secondly i want the Search data with Key Press Event By Words Look like Mobile Phone name Searching. We Press A All of the Name Start From A Shown Up and after 2nd word Type data Populated with 2nd Order I like Very Much i Can do Pls Help me.This is Very Important For My Job Otherwise My Boss will Dismiss me. Kndly My Email Adress is razee_kh2006@yahoo.com 

Thanks

Razee Khan 

Razee Khan

Post #25586
Posted 8/18/2008 8:32:54 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Yesterday @ 9:26:27 AM
Posts: 541, Visits: 856
Welcome to A1VBCode, Razee_khan.

I'm guessing you want a front-end for some database that creates new invoices and sorts through the created ones alphabetically?

If this is the case, post whatever code you have and we'll take a look at it.

Also, I would advise against posting your email unless you want a lot of spam.



Mobius
_____________________________________________________________
No trees were harmed in the making of this post.
However, a large number of electrons were horribly inconvenienced.
Post #25588
Posted 9/19/2008 10:22:41 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 10/14/2008 12:47:36 PM
Posts: 17, Visits: 20
Format Invoice Name

First two letters, space, year in four digits, two digit month, dash, invoice number :

Module Module1

Sub Main()

Dim strInvoice As String = ""

Dim intInvoiceNumber As Integer = 0

intInvoiceNumber = 12345

strInvoice = "KS "

strInvoice &= Format(Date.Now, "yyyyMM")

strInvoice &= "-" & intInvoiceNumber.ToString

Console.WriteLine(strInvoice)

Console.ReadLine()

End Sub

End Module

Post #25734
Posted 9/19/2008 10:27:53 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 10/14/2008 12:47:36 PM
Posts: 17, Visits: 20
Razee_khan (8/18/2008)
Dear All

Secondly i want the Search data with Key Press Event By Words Look like Mobile Phone name Searching. We Press A All of the Name Start From A Shown Up and after 2nd word Type data Populated with 2nd Order I like Very Much i Can do Pls Help me.

 

Adding all your data into a combobox will allow you to do this. On the combox box set the following properties

Combobox1.Sorted = True

Combobox1.AutoCompleteMode = Append

Combobox1.AutoCompleteSource = List Items

This will allow you to type in the combobox and will auto pick the items.

 

Post #25735
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Brian, Peter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 5:32am