I swear my brain has left me for a trip to China or something.
There are two forms invoolved in thi
pfrm_AddClientPrimary
pfrm_AddClientDuplicateCheck
On a command button in pfrm_AddClientDuplicateCheck I have the following code.
This works great
On the onOpen event of the pfrm_AddClientPrimary form I have this code
This fails on the first line with this error
Run-time error 2147352567 (80020009)
You can't assign a value to this object
I am aware of the incorect spelling of Me.SocialInsureanceNumber this is the way it is in the db
I have done a lot of reading on this forum and others and none seem to apply to my situation.
Any assistance will be greatly appreciated
There are two forms invoolved in thi
pfrm_AddClientPrimary
pfrm_AddClientDuplicateCheck
On a command button in pfrm_AddClientDuplicateCheck I have the following code.
Code:
Private Sub cmdAddNewClient_Click()
DoCmd.OpenForm "pfrm_AddClientPrimary"
DoCmd.Close acForm, "pfrm_AddClientDuplicateCheck"
End Sub
This works great
On the onOpen event of the pfrm_AddClientPrimary form I have this code
Code:
Private Sub Form_Open(Cancel As Integer)
Me.FirstName = Forms!pfrm_AddClientDuplicateCheck!txtFirstName
Me.LastName = Forms!pfrm_AddClientDuplicateCheck!txtLastName
Me.SocialInsureanceNumber = Forms!pfrm_AddClientDuplicateCheck!txtSOcialInsureanceNumber
Me.FirstName.SetFocus
End Sub
This fails on the first line with this error
Run-time error 2147352567 (80020009)
You can't assign a value to this object
I am aware of the incorect spelling of Me.SocialInsureanceNumber this is the way it is in the db
I have done a lot of reading on this forum and others and none seem to apply to my situation.
Any assistance will be greatly appreciated