H hucheunghugo New member Local time Tomorrow, 01:13 Joined Apr 11, 2022 Messages 23 Apr 11, 2022 #1 Code: X = DLookup("PlayID", "Houses", NameCond = 1 And DateCond = 1 And TimeCond = 1) There is no null value in my table.......
Code: X = DLookup("PlayID", "Houses", NameCond = 1 And DateCond = 1 And TimeCond = 1) There is no null value in my table.......
H hucheunghugo New member Local time Tomorrow, 01:13 Joined Apr 11, 2022 Messages 23 Apr 11, 2022 #2 Will it be affected if the PlayID is auto number?
H hucheunghugo New member Local time Tomorrow, 01:13 Joined Apr 11, 2022 Messages 23 Apr 11, 2022 #3 X = DLookup("PlayID", "Houses", "NameCond = 1" And "DateCond = 1" And "TimeCond = 1") And if i use this, there will be a type missmatch
X = DLookup("PlayID", "Houses", "NameCond = 1" And "DateCond = 1" And "TimeCond = 1") And if i use this, there will be a type missmatch
bob fitz AWF VIP Local time Today, 17:13 Joined May 23, 2011 Messages 4,807 Apr 11, 2022 #4 What is the "Data Type" of NameCond,DateCond and TimeCond
H hucheunghugo New member Local time Tomorrow, 01:13 Joined Apr 11, 2022 Messages 23 Apr 11, 2022 #5 bob fitz said: What is the "Data Type" of NameCond,DateCond and TimeCond Click to expand... They are all number
bob fitz said: What is the "Data Type" of NameCond,DateCond and TimeCond Click to expand... They are all number
Gasman Enthusiastic Amateur Local time Today, 17:13 Joined Sep 21, 2011 Messages 17,486 Apr 11, 2022 #6 Put " around the criteria in your first post. Google the syntax as well.
bob fitz AWF VIP Local time Today, 17:13 Joined May 23, 2011 Messages 4,807 Apr 11, 2022 #7 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
H hucheunghugo New member Local time Tomorrow, 01:13 Joined Apr 11, 2022 Messages 23 Apr 11, 2022 #8 bob fitz said: 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 Click to expand... This fixed my problem thank a lot!!
bob fitz said: 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 Click to expand... This fixed my problem thank a lot!!