D
Daniel
In A VBA module I have some sql that runs, I'm trying to
get it so an the user is prmpted to enter a value so a
recordet can be created. Everything seems to be runnong
fine, the input box comes up but when then sql in the
recordet runs at doesn't seem to be picking up the vlue
enterd in the input box:
Below is an example from the sql string hte Name should
be
& " HAVING ((([" & sourcetable & "].DAT) Between " &
StartDate & " And " & EndDate & ") AND (([" & sourcetable
& "].CODE)=" & Name & "));"
derived from the iputbox whixh comes before the sql
string in the module:
Name = InputBox(Message, Title)
Any ideas anyone. Be greatful for some help.
Cheers
Daniel
get it so an the user is prmpted to enter a value so a
recordet can be created. Everything seems to be runnong
fine, the input box comes up but when then sql in the
recordet runs at doesn't seem to be picking up the vlue
enterd in the input box:
Below is an example from the sql string hte Name should
be
& " HAVING ((([" & sourcetable & "].DAT) Between " &
StartDate & " And " & EndDate & ") AND (([" & sourcetable
& "].CODE)=" & Name & "));"
derived from the iputbox whixh comes before the sql
string in the module:
Name = InputBox(Message, Title)
Any ideas anyone. Be greatful for some help.
Cheers
Daniel