Hi,
I have a table created of clothing ranges and it contains the following columns count, clothing type, colour, size, manfacturer etc. What I need is to create a form so a report can be run to check the various counts for based on user input, they can select eg jumpers, size and colour adn see what is in stock, or choose other combinations. I created a table for clothing type and also colour. Then on the form I used a combo box and just edited the vba to create link the ok button to the user selection so that the query could be run. However the query only returns values for clothing type and not the colour.
When I test the query directly it works ok(except it shows blank values as well) but its just the form and programming of the ok button.
Any suggestions would be useful
Thank you
Phil
I have a table created of clothing ranges and it contains the following columns count, clothing type, colour, size, manfacturer etc. What I need is to create a form so a report can be run to check the various counts for based on user input, they can select eg jumpers, size and colour adn see what is in stock, or choose other combinations. I created a table for clothing type and also colour. Then on the form I used a combo box and just edited the vba to create link the ok button to the user selection so that the query could be run. However the query only returns values for clothing type and not the colour.
Private Sub cmdOK_Click()
DoCmd.OpenQuery "qry1", acViewNormal, acEdit
DoCmd.Close acForm, "qry1"
End Sub
DoCmd.OpenQuery "qry1", acViewNormal, acEdit
DoCmd.Close acForm, "qry1"
End Sub
When I test the query directly it works ok(except it shows blank values as well) but its just the form and programming of the ok button.
Any suggestions would be useful
Thank you
Phil