Hi folks, I'm struggling with the exact syntax to do the following.
I have a subform(sfrmContacts) on a form(frmMainDisplay)
I'm using the subform as a placeholder which switches between two subforms that essential display a list of contacts(sfrmContacts) and a detail of a selected contact (popEditContact). Selecting a contact from the list changes the Source form so the user is viewing the second form. All good and well.
I need a button on sfrmContacts that switches the form:
(This works)
I then need to unlock some controls:
I've tried a few permutations of that first line, but I get various errors about it not finding the control.
I then need to, one way or another, move to a new record.
The way I normally do this isn't working either...
Any pointers?
Thanks folks...
I have a subform(sfrmContacts) on a form(frmMainDisplay)
I'm using the subform as a placeholder which switches between two subforms that essential display a list of contacts(sfrmContacts) and a detail of a selected contact (popEditContact). Selecting a contact from the list changes the Source form so the user is viewing the second form. All good and well.
I need a button on sfrmContacts that switches the form:
Code:
Forms!frmMainDisplay.ContactPlaceholder.SourceObject = "popEditContact"
I then need to unlock some controls:
Code:
For Each ctl In Forms!frmMainDisplay.popEditContact.form
If ctl.Tag = "Locked" Then
ctl.BorderStyle = 1
ctl.Locked = False
End If
Next ctl
I've tried a few permutations of that first line, but I get various errors about it not finding the control.
I then need to, one way or another, move to a new record.
The way I normally do this isn't working either...
Any pointers?
Thanks folks...