I’m trying to get a value from a field in a query and store it in a variable using VB. I’ve tried many suggestions from the post but noting seems to work. The query is called qryReportGen and the field within the query is JobHr . Thanks
Like PHV said. Something like
Dim intJobHr as integer
dim strWhere as string
strWhere = "something here"
intJobHr = dlookup("JobHr","qryReportGen",strWhere)
The strWhere is a where statement without the word "where" in it. Maybe something like
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.