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”)
I tested and found it is working OK, actually, with all solutions (of mbizup:, imnorie:, HainKurt:)
Until next time.
Van
Microsoft Access
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
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