D
Dave
I'm having a problem with some VB and SQL in my db. I am trying to run a
query on questions by using a text box as the criteria. Here's the code I
was using:
Dim listname As String
Dim mcroname As String
Dim refreshname As String
listname = "Text1"
mcroname = "requery"
refreshname = "List23"
DoCmd.RunSQL "Delete From [Temp Actions]"
DoCmd.RunSQL "INSERT INTO [Temp Actions] ( [Action] )SELECT
Actions.Action FROM Actions WHERE (((Actions.[Project Name]) = listname))"
DoCmd.RunMacro mcroname
DoCmd.RunMacro refreshname
I'm trying to take all questions with the Project Name for the action is the
same as what is contained in Text1. When i run this, it brings an imput box
asking for the value in "listname" rather than looking it up. Any ideas on
what I'm doing wrong?
Thanks
query on questions by using a text box as the criteria. Here's the code I
was using:
Dim listname As String
Dim mcroname As String
Dim refreshname As String
listname = "Text1"
mcroname = "requery"
refreshname = "List23"
DoCmd.RunSQL "Delete From [Temp Actions]"
DoCmd.RunSQL "INSERT INTO [Temp Actions] ( [Action] )SELECT
Actions.Action FROM Actions WHERE (((Actions.[Project Name]) = listname))"
DoCmd.RunMacro mcroname
DoCmd.RunMacro refreshname
I'm trying to take all questions with the Project Name for the action is the
same as what is contained in Text1. When i run this, it brings an imput box
asking for the value in "listname" rather than looking it up. Any ideas on
what I'm doing wrong?
Thanks