alam747
asked on
How to modify multiple field of an access table
Hi Exparts,
I used the following VBA code to modify a table field:
Currentdb.execute "Update tblTarget_sr INNER JOIN tblMerged_test ON tblTarget_sr.[Customer Part]=tblMerged_test.[Part No] SET tblTarget_sr[Target total time]=tblMerged_test.[tota l time]
But I have more three fields in Update tblTarget_sr that need to modified at the same time while the above condition met.
Please advise me what would be the VBA code to modify other fields.
Thanks
I used the following VBA code to modify a table field:
Currentdb.execute "Update tblTarget_sr INNER JOIN tblMerged_test ON tblTarget_sr.[Customer Part]=tblMerged_test.[Part
But I have more three fields in Update tblTarget_sr that need to modified at the same time while the above condition met.
Please advise me what would be the VBA code to modify other fields.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your prompt response.
I have several field to update therefore its too long, I used _ (a space and underscore but its giving me compile error.
Is there anything need to do like shift key or anything else.
Thanks
I have several field to update therefore its too long, I used _ (a space and underscore but its giving me compile error.
Is there anything need to do like shift key or anything else.
Thanks
Post your Code here and I'll see if I can help out...
ASKER
Thanks
Open in new window