Anytime I create a new SELECT statement using VBA & SQL I
get the following error:
Run-time error '2342':
A RunSQL action requires an argument consisting os an SQL
statement.
This ONLY happens on SELECT statements. The following
code runs:
strSQL = "DELETE tblTable.* FROM tblTable;"
DoCmd.RunSQL (strSQL)
This generates an error:
strSQL = "SELECT tblTable.* FROM tblTable;"
DoCmd.RunSQL (strSQL)
Any help would be appreciated.
Thanks,
Suzanne
Y're following statement is no action or deifintionquery
> strSQL = "SELECT tblTable.* FROM tblTable;"
if the records of tblTable have to be shown,
use
DoCmd.OpenTable "tblTable", acViewNormal
Krgrds,
Perry
"Suzanne Shepard" <sshe...@hartforddirect.com> schreef in bericht
news:013401c30525$a60af290$a601...@phx.gbl...