View Full Version : Query indirectly referencing a table


bugsy
06-03-2008, 02:29 PM
Not sure if i am wording it right.

In a query i have calculated field that is using Date().
Instead of Date() I want to use a value in a table that only has 1 record.
How can i reference that table ?

CraigDolphin
06-03-2008, 02:34 PM
Well, you could use the DFirst() function to retrieve the value

eg,

DFirst("[FieldNameHere]","TableNameHere")

bugsy
06-03-2008, 04:17 PM
Well, you could use the DFirst() function to retrieve the value

eg,

DFirst("[FieldNameHere]","TableNameHere")
great !!!!
thanks

CraigDolphin
06-03-2008, 05:24 PM
Happy to help :)