Hi all, I have a query that is built from a string variable. (the date is variable by input from the user).
myQuery = "Select whatever from tableName where date_field between #" & myDate1 & "# and #" & myDate2 ";"
DoCmd.RunSQL wants an action query. What command could I use to get this to run since it is only a select query?
If there's no command to do this, does anyone have a suggestion?
Thanks everyone.
PB
myQuery = "Select whatever from tableName where date_field between #" & myDate1 & "# and #" & myDate2 ";"
DoCmd.RunSQL wants an action query. What command could I use to get this to run since it is only a select query?
If there's no command to do this, does anyone have a suggestion?
Thanks everyone.
PB