Solved UPDATE QUERY (1 Viewer)

sbaud2003

Member
Local time
Today, 08:43
Joined
Apr 5, 2020
Messages
178
I want to update all records in a tbl of a numeric field AC_NO with AC_NO preceeded by 9 for example if Account No is 8337453 it should be updated to 98337453. What will be the vba code for query
 

XPS35

Active member
Local time
Today, 05:13
Joined
Jul 19, 2022
Messages
160
Is the number always 7 positions?
 

ebs17

Well-known member
Local time
Today, 05:13
Joined
Feb 7, 2020
Messages
1,955
Numeric field - do you know addition?
Code:
UPDATE TableX SET AC_NO = AC_NO + 10000000
 

ebs17

Well-known member
Local time
Today, 05:13
Joined
Feb 7, 2020
Messages
1,955
That was a breaking point for our own thinking.
Yep, someone knows addition.
 

Users who are viewing this thread

Top Bottom