rincewind_wizzard
Registered User.
- Local time
- Today, 08:17
- Joined
- Feb 7, 2018
- Messages
- 23
Hi all,
I'm trying to run the following in a module, but it doesn't like the 0000000 (I get expected: end of statement). The employee number field is text and I need to pad it with leading zeros.
'Tidy up the pay number in the tax and NI table - format to 7 places
strsql = "UPDATE tblIMPORT_NIable_Taxable_Earnings SET tblIMPORT_NIable_Taxable_Earnings.[Employee number] = Format([Employee number],"0000000");"
DoCmd.RunSQL strsql
Yours,
Paul
I'm trying to run the following in a module, but it doesn't like the 0000000 (I get expected: end of statement). The employee number field is text and I need to pad it with leading zeros.
'Tidy up the pay number in the tax and NI table - format to 7 places
strsql = "UPDATE tblIMPORT_NIable_Taxable_Earnings SET tblIMPORT_NIable_Taxable_Earnings.[Employee number] = Format([Employee number],"0000000");"
DoCmd.RunSQL strsql
Yours,
Paul