Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A ¦ B ¦ C ¦ D ¦ E ¦ F ¦ G ¦ H ¦ etc..... Navigate a Recordset?

Status
Not open for further replies.

markvan

Technical User
Sep 12, 2001
37
0
0
AU
I have a list of 300 names in a recordset
I want to put links at the top of the page like:
A | B | C | D | E | F | G | H | etc.....
So you can move to the names beginning with whichever letter you choose.
Can I target parts of a recordset? or am I missing the obvious, help please!
Is there some way like "B*" or "B%" to bring up the B's, if so where and how?

Any suggestions how to get this working would be much appreciated.

mark V X-)
 
You may need to use handcode.
Try to use "Left" it's a VBsript String Function. It returns how characters you want from left side of your string(in this case you database names)
Syntax
Left(string, length)

so you can compare your Letter with your Name (in the db)
 
Depends on the Database you are using - I use mysql and a querry such as this -

Select * from TableName Where ColumnName = "B%"

There is more information at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top