954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need help - Alphabetic Diary / VB Controls

Need help for creating an diary alphabetically...some doubts

1. Do i need to create separate recordset for each alphabet (A-Z) ?
2. How do i get the 1st letter of the name entered into a textbox ? (hav heard that "VB Controls" help...but couldnt find a control to help me..)
3. if answer to 1st question is "no" how do i store & Retrieve names of particular alphabet from database when user clicks a label of that alphabet?

Plz help...

pankaj.garg
Junior Poster in Training
71 posts since Nov 2009
Reputation Points: 10
Solved Threads: 2
 

Q 1. Do i need to create separate recordset for each alphabet (A-Z) ?
Ans: Why don't you create some labels or listbox, so that you can display the alphabets. When user clicks on the alphabet, use the database to fetch the data...

Q 2. How do i get the 1st letter of the name entered into a textbox ? (hav heard that "VB Controls" help...but couldnt find a control to help me..)
Ans: Try this code:

Dim strFirstLetter as string
strFirstLetter=left(trim(Text1.text),1)


)

Q 3. if answer to 1st question is "no" how do i store & Retrieve names of particular alphabet from database when user clicks a label of that alphabet?
Ans:Use a separate data Field in your table to store the Alphabets

Good luck :)

akhileshbc
Newbie Poster
14 posts since Nov 2009
Reputation Points: 10
Solved Threads: 5
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You