J
Jennyrd
I actually have two questions:
1) Is there a way to duplicate a record without duplicating all of the
fields? I have a button that I set up using the wizard that duplicates the
record, but it also duplicates fields that I do not want to accept
duplicates. So if I hit duplicate the record, it pops up with an error about
the table not accepting duplicates for this field. Any good ideas?
2) I need a message box to pop up if someone inputs a duplicate unique id.
I was trying to use this text on the Form_Unload property, but it keeps
coming up with "syntax error missing operator on unique id" Can anyone see
the error in this code. I'm at the end of my rope! Thanks!!!!!
If Not IsNull(DLookup("Unique ID", "Census", "Unique Id='" & uniqueid &
"'")) Then
Cancel = (MsgBox("The Unique ID you entered already exists.&vbnewline&Is
this your intention?", vbYesNo = vbNo))
End If
1) Is there a way to duplicate a record without duplicating all of the
fields? I have a button that I set up using the wizard that duplicates the
record, but it also duplicates fields that I do not want to accept
duplicates. So if I hit duplicate the record, it pops up with an error about
the table not accepting duplicates for this field. Any good ideas?
2) I need a message box to pop up if someone inputs a duplicate unique id.
I was trying to use this text on the Form_Unload property, but it keeps
coming up with "syntax error missing operator on unique id" Can anyone see
the error in this code. I'm at the end of my rope! Thanks!!!!!
If Not IsNull(DLookup("Unique ID", "Census", "Unique Id='" & uniqueid &
"'")) Then
Cancel = (MsgBox("The Unique ID you entered already exists.&vbnewline&Is
this your intention?", vbYesNo = vbNo))
End If