I'm using this line of code initiated by a button click to move information displayed on a form to a table to initiate a work order.
DoCmd.RunSQL "Insert Into WorkOrders(MaintCntl)Values('" & Me!MaintCntl & "')"
This works well but i'd like to improve my operation and also insert predefined values (the number 2 into one field and a note into another field) these are in the same table as the first information (Value) i'm already inserting. the note and the number 2 are not going to change. I'm not having much success figuring out the syntax. Any help with the syntax would be great!
Thanks Phideaux
The mind is the best toy.
Play with someone else's often
DoCmd.RunSQL "Insert Into WorkOrders(MaintCntl)Values('" & Me!MaintCntl & "')"
This works well but i'd like to improve my operation and also insert predefined values (the number 2 into one field and a note into another field) these are in the same table as the first information (Value) i'm already inserting. the note and the number 2 are not going to change. I'm not having much success figuring out the syntax. Any help with the syntax would be great!
Thanks Phideaux
The mind is the best toy.
Play with someone else's often