s_samira_21
Registered User.
- Local time
- Today, 22:36
- Joined
- Jun 8, 2011
- Messages
- 52
Hi again
I Have a split form named Organization_List that when I click on each record another form named Organization_Details opens that shows that records details. Organization_Details contains 3 tabs.
In each tab I have one Subform that I want to be filtered based on the ID_ text box on main form (Organization_Details) named txt_ID.
for example tab projects contains project subform that shows all projects list. I want that when Organization_Details opens for Organization that its ID is 10, my subform filter for projects that are related with this organization.
for this I used this code on Organization_Details form load event:
Private Sub Form_Load()
Dim OrgID As Integer
OrgID = Me.txt_ID.Value
Form_Project_subform.Filter = "ID_ = OrgID"
Form_Task_subform.FilterOn = True
End Sub
but when the Organization_Details is loaded, a message box is shown that says: "enter parameter value" OrgID
What is the problem and what can I do?
I Have a split form named Organization_List that when I click on each record another form named Organization_Details opens that shows that records details. Organization_Details contains 3 tabs.
In each tab I have one Subform that I want to be filtered based on the ID_ text box on main form (Organization_Details) named txt_ID.
for example tab projects contains project subform that shows all projects list. I want that when Organization_Details opens for Organization that its ID is 10, my subform filter for projects that are related with this organization.
for this I used this code on Organization_Details form load event:
Private Sub Form_Load()
Dim OrgID As Integer
OrgID = Me.txt_ID.Value
Form_Project_subform.Filter = "ID_ = OrgID"
Form_Task_subform.FilterOn = True
End Sub
but when the Organization_Details is loaded, a message box is shown that says: "enter parameter value" OrgID
What is the problem and what can I do?