Microsoft
Software
Hardware
Network
Question : Do you know how I could make a single SQL Statement into a compound SQL Statement using the following SQL statements ?
I am developing an Access 2003 application using Access as the front end and SQL Server as the back in database.
In my VBA Code, I use the following SQL Statement to update a table titled tblPSInfo.
Do you know how I could make this single SQL Statement assigned to the variable
SQL1 into a compound SQL Statement using the following additional SQL Statement: BRANCH = Mid(CostCenter), 4, 3
sSQL1 = "UPDATE tblPSInfo SET EMAILADD = '" & Replace(getEmailAll, "'", "''") & "' WHERE EMPNUM = '" & id & "'"
Add the following SQL Statement:
BRANCH = Mid(CostCenter), 4, 3
Answer : Do you know how I could make a single SQL Statement into a compound SQL Statement using the following SQL statements ?
sSQL1 = "UPDATE tblPSInfo SET EMAILADD = '" & Replace(getEmailAll, "'", "''") & "', BRANCH = Mid([CostCenter], 4, 3) WHERE EMPNUM = '" & id & "'"
where is [CostCenter] coming from?
Random Solutions
When is it most appropriate to use ADO vs. SQL statements and queries in a multi-user environment?
What is blocking Remote Desktop?
W7 - Give limited users rights to install fonts
How do I disable the login prompt of IIS application
Hooking 5.1 Surround sound to xBox 360 premium
Index fragmentation
Code Behind Value in Hyperlink Field
SSIS import from Excel giving me nulls
error with web site when it was moved from server 2003 to 2008
Toshiba M115-S1061 with windows XP that has a hoarse, husky, scattered sound