![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I'm trying to run a select query in VBA Access. May I use the Docmd.Runsql (strSql) or it is only for Action queries? Thak you very much. Cheers |
#3
| |||
| |||
|
|
On 5 Feb 2004 01:07:53 -0800, sandrino1977 (AT) inwind (DOT) it (sandrino1977 (AT) inwind (DOT) it) wrote: Hi all, I'm trying to run a select query in VBA Access. May I use the Docmd.Runsql (strSql) or it is only for Action queries? Thak you very much. Cheers You could use RunSQL, but it won't do you much good for a "select" query. What is it that you really want to do? |
#4
| |||
| |||
|
|
Hi Bob, I started defining some variable as strings in order to declare the Sql statement. Then I run the Sql Statement through the function Docmd. RunSQL by using the variable strSQL as argument. Anyway, it doesn't work. |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |