J
JL Wright
Lets say I have a table for products named tblProduct. Every product has a
different set of fields that I would like to enter data through.
Now I have a form called frmProduct. I have several sub forms named
frmSubProductOrange, frmSubProductApple, frmSubProductGrape and so on.
Now I have a field in frmProduct that I have named tbProduct.
When I enter that field have a drop down box with a laundry list of
products.
I have all of my sub form visible = False on Open in frm Product.
This is what I want to do.
When I enter tbProduct and select Orange, I want frmSubProductOrange to be
visible = True.
Get the picture.
I have tried the following but it doesn’t work.
Private Sub tbProduct_AfterUpdate()
If (tbProduct) = "Orange" Then
frmSubProductOrange.Visible = True
frmSubProductApple.Visible = False
frmSubProductGrape.Visible = False
End If
End Sub
I hope all of this is clear. I need help.
different set of fields that I would like to enter data through.
Now I have a form called frmProduct. I have several sub forms named
frmSubProductOrange, frmSubProductApple, frmSubProductGrape and so on.
Now I have a field in frmProduct that I have named tbProduct.
When I enter that field have a drop down box with a laundry list of
products.
I have all of my sub form visible = False on Open in frm Product.
This is what I want to do.
When I enter tbProduct and select Orange, I want frmSubProductOrange to be
visible = True.
Get the picture.
I have tried the following but it doesn’t work.
Private Sub tbProduct_AfterUpdate()
If (tbProduct) = "Orange" Then
frmSubProductOrange.Visible = True
frmSubProductApple.Visible = False
frmSubProductGrape.Visible = False
End If
End Sub
I hope all of this is clear. I need help.