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
Outlook 2007 Recover email rules from old pst
Windows XP drops network connection freezes because of offline files
Exchange 2003 Private Store increased/decreased
MSSQL2000
Attach-Detach vs. Backup-Restore database ?
"Database could not recover. Contact Technical Support." (with link to logs)
SQL Reporting - Join Multiple Strings Returned From a Dataset
Recordset in adp
SQL 2008 Express Silent Install
Is there an equivilant of "XP Mode" for Terminal Server 2008 R2?