Hi,
I have a simple query that returns a single record from the table that matches a given employee number and has the Maximum value in the date field. I'm running the query from a VB Module and want to get load the date value into the module. Currently I'm running the Query through DoCmd.OpenQuery, but that just shows me the record. I looked at DoCmd.RunSQL, but it seemed like I was heading in the wrong direction with that approach.
What's the best way to load the value into my module of the field in the record that my query finds? If there's a alternative non-query appoach to finding this single field, I'm all ears.
Thanks!
Rich
I have a simple query that returns a single record from the table that matches a given employee number and has the Maximum value in the date field. I'm running the query from a VB Module and want to get load the date value into the module. Currently I'm running the Query through DoCmd.OpenQuery, but that just shows me the record. I looked at DoCmd.RunSQL, but it seemed like I was heading in the wrong direction with that approach.
What's the best way to load the value into my module of the field in the record that my query finds? If there's a alternative non-query appoach to finding this single field, I'm all ears.
Thanks!
Rich