G
GTP
Can someone help me with a refresh on my 3rd dropdown?
When I go through all three drop downs and then want to go
back through the dropdowns once again, only the first two
will refresh and the third has no information.
Three fields in one table, custID, Division, Jobsite
three dropdowns - cboCust, cboDivision, cboJobsite
CODE:
Option Compare Database
Private Sub cboCust_AfterUpdate()
Dim strSearch As String
'For text IDs
strSearch = "[CustID] = " & Chr$(34) & Me![cboCust] &
Chr$(34)
'Find the record that matches the control.
Me.RecordsetClone.FindFirst strSearch
Me.Bookmark = Me.RecordsetClone.Bookmark
'requery the Division combox box so that it shows correct
information (given in the row source)
Me![cboDivision].Requery
Me.cboDivision.Enabled = True
Me![cboDivision].Value = "Select Division"
Me![cboJobsite].Requery
Me.cboJobsite.Enabled = True
Me![cboJobsite].Value = "Select Jobsite"
End Sub
Private Sub Form_Load()
Me.cboCust.Value = "select a customer"
Me.cboDivision.Enabled = False
Me.cboJobsite.Enabled = False
End Sub
Thank you,
Greg
When I go through all three drop downs and then want to go
back through the dropdowns once again, only the first two
will refresh and the third has no information.
Three fields in one table, custID, Division, Jobsite
three dropdowns - cboCust, cboDivision, cboJobsite
CODE:
Option Compare Database
Private Sub cboCust_AfterUpdate()
Dim strSearch As String
'For text IDs
strSearch = "[CustID] = " & Chr$(34) & Me![cboCust] &
Chr$(34)
'Find the record that matches the control.
Me.RecordsetClone.FindFirst strSearch
Me.Bookmark = Me.RecordsetClone.Bookmark
'requery the Division combox box so that it shows correct
information (given in the row source)
Me![cboDivision].Requery
Me.cboDivision.Enabled = True
Me![cboDivision].Value = "Select Division"
Me![cboJobsite].Requery
Me.cboJobsite.Enabled = True
Me![cboJobsite].Value = "Select Jobsite"
End Sub
Private Sub Form_Load()
Me.cboCust.Value = "select a customer"
Me.cboDivision.Enabled = False
Me.cboJobsite.Enabled = False
End Sub
Thank you,
Greg