I have a search form(BusquedaPr od) with several text boxes and Combo boxes to search products within a subform(SubForm RawProducts) inside it; its working fine, the subform has following field:
ProdId(AutoNum, PK),
ManId(Number,FK )
ManPartNo(Text)
ProdDesc(Text)
The manufacturer(Ma nId) is a Combobox where you pick the manuacturer to assign to a product, but some times you have to add a Manufacturer that is no in the list, so DoubleClick the ManId Field the AddManForm opens and you can Add new Manufacturer data.
In the AddManForm Close event I wrote some code to requery the [ManId] ComboBox inside the SubFormRawProdu cts, but Im confusing about how is the right way to point to the [ManId]Field in the sub form.
I have the following code but nothing happens, no error showed up but also the ManId Field doesn't refresh
any help will be apreciated
Thanks
Raymundo Walle
ProdId(AutoNum, PK),
ManId(Number,FK )
ManPartNo(Text)
ProdDesc(Text)
The manufacturer(Ma nId) is a Combobox where you pick the manuacturer to assign to a product, but some times you have to add a Manufacturer that is no in the list, so DoubleClick the ManId Field the AddManForm opens and you can Add new Manufacturer data.
In the AddManForm Close event I wrote some code to requery the [ManId] ComboBox inside the SubFormRawProdu cts, but Im confusing about how is the right way to point to the [ManId]Field in the sub form.
I have the following code but nothing happens, no error showed up but also the ManId Field doesn't refresh
Code:
Private Sub Form_Close()
If (IsLoaded("SubformRawProducts")) Then
Forms!BusquedaProd!SubformRawProducts!ManId.Requery
End If
End Sub
Thanks
Raymundo Walle
Comment