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
File System Error (-1073741701) When attempting to run or attempting to load Vista SP1
blue Screen on windows 2003 sp1
What are the recommended alternatives to the Office Web Components when used in Microsoft Access
Open Word document, fill bookmarks, then Insert a Word File into active document
How do I change default accept meeting response to "Do not send response"?
vb.net - get ip address from host
Dlookup(price of item the last date/time it was completed)
BESR VHD Error
Why can't I see my vertical scrollbars in Access 2007 Form?
How do I hide the splash screen on application load? VB.NET 2005