Afternoon everyone
I have had a search on this and couldn't really find what I was after, forgive me if it sits blaringly obviously in a previous post.
I have a table called "Xmaster", with a name field "Staff" and a time field called "from".
There is a form "Star1" which has the textbox "text190" containing a name.
The following works
Dim findtime As Variant
findtime = DMax("[from]", "xmaster", "[staff] = forms!star1!text190")
There is also a field in the table called "date".
I would like to add 'where the date field = todays date'.
What is the correct syntax way when this into the dmax function ?
I have had a search on this and couldn't really find what I was after, forgive me if it sits blaringly obviously in a previous post.
I have a table called "Xmaster", with a name field "Staff" and a time field called "from".
There is a form "Star1" which has the textbox "text190" containing a name.
The following works
Dim findtime As Variant
findtime = DMax("[from]", "xmaster", "[staff] = forms!star1!text190")
There is also a field in the table called "date".
I would like to add 'where the date field = todays date'.
What is the correct syntax way when this into the dmax function ?