Solved It shows that there is invalid use

hucheunghugo

New member
Local time
Tomorrow, 01:13
Joined
Apr 11, 2022
Messages
23
Code:
X = DLookup("PlayID", "Houses", NameCond = 1 And DateCond = 1 And TimeCond = 1)
There is no null value in my table.......
 
X = DLookup("PlayID", "Houses", "NameCond = 1" And "DateCond = 1" And "TimeCond = 1")
And if i use this, there will be a type missmatch
 
Put " around the criteria in your first post.
Google the syntax as well.
 
Have you tried:
X = DLookup("PlayID", "Houses", "NameCond = 1 And DateCond = 1 And TimeCond = 1")

Edit:
I believe that's what Gasman is suggesting in his last post, which I've only just noticed
 
Have you tried:
X = DLookup("PlayID", "Houses", "NameCond = 1 And DateCond = 1 And TimeCond = 1")

Edit:
I believe that's what Gasman is suggesting in his last post, which I've only just noticed
This fixed my problem thank a lot!!
 

Users who are viewing this thread

Back
Top Bottom