Hi ItsMe,
I'm bringing back this post because I've encountered an issue with the me.cboSubOrganization1.Value = "" in the VBA code as described above. It appears the value does in fact get stored in the table backend, but when reopening the form, some record comboboxes are blanked out.. but if you look in the tables, the values the user entered are still stored in the table.
If you recall from above, I have three comboboxes: Customer, CustomerSubOrg, and POR.
Here is the VBA code I have setup:
Code:
Private Sub cboCustomer1_AfterUpdate()
Me.cboSubOrganization1.Requery
Me.cboSubOrganization1.Value = ""
Me.cboPOR1.Requery
Me.cboPOR1.Value = ""
End Sub
Private Sub cboSubOrganization1_AfterUpdate()
Me.cboPOR1.Requery
Me.cboPOR1.Value = ""
End Sub
I'm understanding the purpose of the .Value = "" but am not sure how to get the combobox fields to "Stick" on the form. It seems that, if a user enters three different records in separate forms, and picks different organizations (values) than the first record on the first form, the second and third disappear on the other two forms when scrolling through them.
For example, here's what I'll enter on the first form:
Organization: A
Suborganzation: B
POR organization: C
And here is what I'll enter on the Second form for my second entry/record:
Organization: B
Suborganization: whatever
PORorganization: whatever
In the third form I'll enter the SAME organization in the organization combobox as the first form:
Organization: A
Suborganization: D
POR organization: E
Now, when I scroll back to the three form entries, the SECOND form has blank 2nd and 3rd comboboxes, and the FIRST and THIRD forms still appear fine because of the organization field was the same.
(and remember everything still shows up in the tables and still somehow gets stored).
What am I doing wrong here?