Okay folks. I know this maybe the wrong place to ask, but I have to start somewhere. I have a table entitled customer info. I have developed a form "Customer Info" in which I enter into this table the customer name, PO number, SO Number, and a bunch of other stuff. When I close the form, and check the table, all the data is there exactly how I entered into the form. No problem at this point. Now, here is the problem I need help with -
I have a menu button, which opens up a separate form. This form is linked to a different table called "custdata", and the form is "Prerelease Info". I want to transfer the following items from my first form/table into the 2nd form/table. Here is my VB code that I am using:
DoCmd.OpenForm "Customer Info", , , , acFormReadOnly, acHidden
DoCmd.GoToRecord acDataForm, "Customer Info", acLast
DoCmd.OpenForm "Prerelease info", , , , acFormAdd
Forms![Prerelease info]![ID Select] = Forms![Customer Info]![ID]
Forms![Prerelease info]![PO Num] = Forms![Customer Info]![PO number]
Forms![Prerelease info]![SO Num] = Forms![Customer Info]![SO number]
When the form "Prerelease Info" opens, I can see all the information that transferred over from the first form/table. HOWEVER, the data is not being copied into the new table.
What am I doing wrong here?
I have a menu button, which opens up a separate form. This form is linked to a different table called "custdata", and the form is "Prerelease Info". I want to transfer the following items from my first form/table into the 2nd form/table. Here is my VB code that I am using:
DoCmd.OpenForm "Customer Info", , , , acFormReadOnly, acHidden
DoCmd.GoToRecord acDataForm, "Customer Info", acLast
DoCmd.OpenForm "Prerelease info", , , , acFormAdd
Forms![Prerelease info]![ID Select] = Forms![Customer Info]![ID]
Forms![Prerelease info]![PO Num] = Forms![Customer Info]![PO number]
Forms![Prerelease info]![SO Num] = Forms![Customer Info]![SO number]
When the form "Prerelease Info" opens, I can see all the information that transferred over from the first form/table. HOWEVER, the data is not being copied into the new table.
What am I doing wrong here?