the issue is that i am taking data from an "assignment" table, and putting it into a "schedule of assignments" table, where the schedule criteria is defined in a "schedule" table. I am only copying some schedule criteria, and the assignment number to the schedule of assignment table. basically, the user selects the assignemnt number and schedule number, and clicks "add". I want code to then pull data from both tables, and make a new record in the schedule of assignments, assigning the assignment and schedule numbers to the new record (along with other criteria). I have variables pulling the data i need, i just need to know the code to add the variables to the fields in my table.
I do not have controls bound to the fields, and i kinda want to steer away from them, cause I may need to add more fields as my requirments may change.
it is as big a pain in the ass as it sounds. hehe.
what i have is
docmd.opentable "MyTable", acNormalView
DoCmd.GoToRecord , , acNewRec
Field1 = Variable1
Field2 = Variable2
.
.
.
DoCmd.Close acTable, "MyTable", acSaveYes
It is the field = variable part that i dont know how to do.
hayt