I have a combo box which selects for facility. I want to use that selection to filter a query which is the data for a second combo box. The code properly identifies the selection from the facility, "DefinedUnitList" but I get a runtime error "The field is to small to accept the amount of data you attempted to add." I suspect the code is also incomplete.
I am using "DefinedUnitList" as the criteria filter in the query.
Private Sub Facility_AfterUpdate()
Dim stqueryname As String
Dim settempvar As String
stqueryname = qrys_FacilityUnit
settempvar = "DefinedUnitList"
Me.Facility = "DefinedUnitList"
docmd.requery (stqueryname)
End Sub
Any help would be appreciated. :banghead:
I am using "DefinedUnitList" as the criteria filter in the query.
Private Sub Facility_AfterUpdate()
Dim stqueryname As String
Dim settempvar As String
stqueryname = qrys_FacilityUnit
settempvar = "DefinedUnitList"
Me.Facility = "DefinedUnitList"
docmd.requery (stqueryname)
End Sub
Any help would be appreciated. :banghead: