D
Diane
I have created a form which prints out all new records from two tables that
were compared. The new records print out on the form. I have added a
command button beside each record that displays that particular information.
When they select the button, it opens a form that displays all of the
information for that record. I would like the user to be able to click a
button that says "add to database" and it adds all of the current displayed
information without having to type it all via a blank form.
Below is the code thus far. From all that I have been reading, I am
thinking that I am going to have to use code dealing with "recordset".
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Add New Record"
stLinkCriteria = "[ACCOUNT NUMBER]=" & "'" & Me![ACCOUNT NUMBER] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
were compared. The new records print out on the form. I have added a
command button beside each record that displays that particular information.
When they select the button, it opens a form that displays all of the
information for that record. I would like the user to be able to click a
button that says "add to database" and it adds all of the current displayed
information without having to type it all via a blank form.
Below is the code thus far. From all that I have been reading, I am
thinking that I am going to have to use code dealing with "recordset".
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Add New Record"
stLinkCriteria = "[ACCOUNT NUMBER]=" & "'" & Me![ACCOUNT NUMBER] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria