stephanie.g
New member
- Local time
- Today, 08:34
- Joined
- Aug 7, 2015
- Messages
- 4
I am using a button to open a specific record from a listbox.   The main form is editable, but my subforms are locked.    This is the code I am using to open the form.
Private Sub View_Click()
Dim SelectedProfileID As String
Dim SelectedCustomer As String
SelectedProfileID = Me.lstResults.Column(0)
SelectedCustomer = Me.lstResults.Column(1)
DoCmd.OpenForm "frmCustomerRecord", , , "[ProfileID]='" & SelectedProfileID & "'", acFormEdit
Any help making the subforms editable would be appreciated. I am brand new to this, so maybe my code is all wrong.
 Private Sub View_Click()
Dim SelectedProfileID As String
Dim SelectedCustomer As String
SelectedProfileID = Me.lstResults.Column(0)
SelectedCustomer = Me.lstResults.Column(1)
DoCmd.OpenForm "frmCustomerRecord", , , "[ProfileID]='" & SelectedProfileID & "'", acFormEdit
Any help making the subforms editable would be appreciated. I am brand new to this, so maybe my code is all wrong.
 
	 
 
		 
 
		 
 
		