tranvangiang17
asked on
How to write a MS Access query to convert a "number" field into "text" field
Since the “Number” field can not have leading zero’s; I have to convert (or update) the original “Numbers” and place them on a new text field; please kindly help me to:
First Issue: How to write a query to add a new text field with 6-Char long to the Test table. Is it possible with query? or we have to use VBA for this adding? If NOT, please guide us via VBA code to add 6-char long text field.
Second issue: How to write a query to convert a 4-digit numbers (i.e. “3040”) to 6-Char long text which contain 4-digit values with 2 padded Zero’s (i.e. “003040”)
Please see the attached filed for better picture.
Thanks.
Van
Sample-tables.doc
First Issue: How to write a query to add a new text field with 6-Char long to the Test table. Is it possible with query? or we have to use VBA for this adding? If NOT, please guide us via VBA code to add 6-char long text field.
Second issue: How to write a query to convert a 4-digit numbers (i.e. “3040”) to 6-Char long text which contain 4-digit values with 2 padded Zero’s (i.e. “003040”)
Please see the attached filed for better picture.
Thanks.
Van
Sample-tables.doc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you. You guys are my true hero.
I tested and found it is working OK, actually, with all solutions (of mbizup:, imnorie:, HainKurt:)
Until next time.
Van