I am setting up an Access database where I'm running a number of update queries.. I would like to instead set up the query actions in a module where I can then simply call the procedure I need instead of clogging up my queries section with a bunch of update queries..
I've set up the procedures, however they're not doing anything... apparently the syntax is all correct but they're not doing what they should be doing...
I am sure it's something dumb that I'm missing... would appreciate help...
Here's an example of the function I set up to call the subroutine as well as the subroutine itself... Why isn't the subroutine working? (Yes, the DB is in a trusted location)
Public Function UpdateEDU()
Call Update_EDU
End Function
Public Sub Update_EDU()
strSql = "UPDATE [Order Detail] SET [Order Detail].PRACTICE = ""EDU"" " & vbCrLf & _
"WHERE ((([Order Detail].PRACTICE)=""IC - Other"") AND (([Order Detail].[Business Area Code])=""4J00""));"
End Sub
Thank you in advance for any advice/help!!
Ron
I've set up the procedures, however they're not doing anything... apparently the syntax is all correct but they're not doing what they should be doing...
I am sure it's something dumb that I'm missing... would appreciate help...
Here's an example of the function I set up to call the subroutine as well as the subroutine itself... Why isn't the subroutine working? (Yes, the DB is in a trusted location)
Public Function UpdateEDU()
Call Update_EDU
End Function
Public Sub Update_EDU()
strSql = "UPDATE [Order Detail] SET [Order Detail].PRACTICE = ""EDU"" " & vbCrLf & _
"WHERE ((([Order Detail].PRACTICE)=""IC - Other"") AND (([Order Detail].[Business Area Code])=""4J00""));"
End Sub
Thank you in advance for any advice/help!!
Ron