|
-
Jan 10th, 2002, 09:42 PM
#1
Thread Starter
Hyperactive Member
-
Jan 10th, 2002, 10:15 PM
#2
Hyperactive Member
Why not just select the code into a recordset it and then in your vb code use the string manipulation code - i.e. codeNum = Left(rec("Code"),(Len(rec("Code") - 2))
-
Jan 10th, 2002, 10:23 PM
#3
Thread Starter
Hyperactive Member
well, cause i'm lazy. i was hoping to do it all in one step, if i do it that way, it's going to give me all the codes, then i'll have to fish out the unique ones. Also then i'll have to put them into the combo box separetely as well, as at the moment im just linking that to the ado that uses the select statement in question
does anyone know an easy way to fish out uniques from a recordset??
thanks again 
Ang
-
Jan 10th, 2002, 10:48 PM
#4
Fanatic Member
You can embed Musician's function into sql:
Select Distinct Left(Code, Len(Code) - 2) As CodeNum From TableNAme
VB 6.0, Access, Sql server, Asp
-
Jan 10th, 2002, 11:04 PM
#5
Thread Starter
Hyperactive Member
oh okeys, i forgot about as's
nice, cheers mateys 
Ang
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|