PDA

View Full Version : Sql Code


sheldondsouza
February 15th, 2007, 07:43 AM
Have this sql code but it does not work!

Combo4.text is the therapist name save as text in database
Late is the value stored as Yes/No

sql22 = "select * from Attendance where TherapistName = '" & (Combo4.Text) & "' and Late = True Order by Attendance_Id"

Do you know how to write the exact code

Thanks!

degsy
February 15th, 2007, 10:12 AM
Are you using .NET?

How are you getting Combo4.Text?
Print the variable to make sure it is populated

sheldondsouza
February 15th, 2007, 03:31 PM
Just Visual Basic 6 and connecting it to access

sheldondsouza
February 15th, 2007, 03:32 PM
combo4.text is pulled from database from attendance table

sheldondsouza
February 15th, 2007, 10:14 PM
Got it

sql22 = "select * from Attendance where TherapistName = '" & (Combo4.Text) & "' AND Late = (True) Order by Attendance_Id"

degsy
February 16th, 2007, 10:03 AM
Thanks for the update :)