|
-
Mar 8th, 2000, 11:28 PM
#1
Thread Starter
Addicted Member
I need some help with a query to get data from a mdb file,
the code so far is working great but i need this last piece.
Data1.RecordSource = _
"SELECT Data_T.Projektnummer, Data_T.Klant, Data_T.Projektnaam, Data_T.Aard, Data_T.Status " & _
"FROM Data_T " & _
"WHERE Klant = 'Test'"
Data1.Refresh
With this code i can get every Klant with the name Test but I also need Klant with the name
TestA or Atest.
Thanx
-
Mar 8th, 2000, 11:53 PM
#2
New Member
Try this
try using "like" and wild card "%"
"SELECT Data_T.Projektnummer, Data_T.Klant, Data_T.Projektnaam, Data_T.Aard, Data_T.Status "
& _
"FROM Data_T " & _
"WHERE Klant like '%Test'"
-
Mar 9th, 2000, 01:02 AM
#3
PowerPoster
Will this better?
I think wild card * is more better.
Data1.RecordSource = _
"SELECT Projektnummer, Klant, Projektnaam, Aard, Status " & _
"FROM Data_T " & _
"WHERE Klant LIKE '*est*'"
Data1.Refresh
Edited by Chris on 03-09-2000 at 01:03 PM
-
Mar 9th, 2000, 01:44 AM
#4
Thread Starter
Addicted Member
Thanx Chris this is what i needed
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
|