I hope I can explain this properly:
I have two tables, one (tblMasterList) which has all the HotWheels Cars made with information about each car including a check box for 'Owned'.
I have a second table called tblPersonalCollection which has all of the same fields as the Master List, but it also has a condition grading section for individual cars as well as a few other pieces of information that are specific to the car in my collection.
What I want to do, is if I find I have a car from the Master List in my collection, I click on owned and it will add the data form a few fields to the Personal Collection table allowing me to process the grading and other key information unique to that car. Now I may have duplicates of one car, so I need to be able to add another of the same car to the Personal Collection table so after I click a save button or something, the owned checkbox needs to refresh to false.
I saw a couple of examples like
which errored out because of the CurrentDb.Execute line and I dont think this would have done what I wanted to do anyhow. I hope this explained the request well enough. Please let me know if you can help me accomplish this task.
Thank you
Ken
I have two tables, one (tblMasterList) which has all the HotWheels Cars made with information about each car including a check box for 'Owned'.
I have a second table called tblPersonalCollection which has all of the same fields as the Master List, but it also has a condition grading section for individual cars as well as a few other pieces of information that are specific to the car in my collection.
What I want to do, is if I find I have a car from the Master List in my collection, I click on owned and it will add the data form a few fields to the Personal Collection table allowing me to process the grading and other key information unique to that car. Now I may have duplicates of one car, so I need to be able to add another of the same car to the Personal Collection table so after I click a save button or something, the owned checkbox needs to refresh to false.
I saw a couple of examples like
Code:
Private Sub CheckBoxName_AfterUpdate()
Dim strSQL As String
strSQL = "INSERT INTO TableB (FieldB1, FieldB2, FieldB3) " & _
"SELECT " & Me.Field1 & " As Expr1, " & Me.Field2 & _
" As Expr2, " & Me.Field3 & " As Expr3;"
CurrentDb.Execute strSQL, dbFailOnError
End Sub
which errored out because of the CurrentDb.Execute line and I dont think this would have done what I wanted to do anyhow. I hope this explained the request well enough. Please let me know if you can help me accomplish this task.
Thank you
Ken