I'm running the following code but it keeps failing because Select
isn't a part of the action query method:
Private Sub Command2_Click( )
Dim SQLStr As String
SQLStr = "SELECT Request.Request ID, Request.ReqName , Request.ReqDesc
FROM Request"
DoCmd.RunSQL SQLStr
'Debug.Print SQLStr
End Sub
How does one execute a SQL select statement through VB that's linked
to a button and return the results to a form (that the button reside
on)? I'm assuming that this is a varily simple procudure but i'm
really stumped! Thanks in advance.
Louis
isn't a part of the action query method:
Private Sub Command2_Click( )
Dim SQLStr As String
SQLStr = "SELECT Request.Request ID, Request.ReqName , Request.ReqDesc
FROM Request"
DoCmd.RunSQL SQLStr
'Debug.Print SQLStr
End Sub
How does one execute a SQL select statement through VB that's linked
to a button and return the results to a form (that the button reside
on)? I'm assuming that this is a varily simple procudure but i'm
really stumped! Thanks in advance.
Louis
Comment