Hi all,
I am having problems setting a forms record source from a combo box selection on a seperate form.
I am developing a stock/quotes db to track all stock/quotes from several branches around europe which once completed I'm hoping to have hosted on a central server to allow all branches access to the db.
On startup the db displays a simple switchboard (frmSwitchBoard) containing 1 combo box (cbobranchselect) where the user is to select their branch either UK,MOC,Sweden,Germany,Italy,France and Spain.
After update of (cbobranchselect) a form opens with 3 buttons. This allows the user to open edit stock (frmEditStock), edit quotes (frmEditQuotes) both data entry forms, and a catalogue (frmDigitalCatalogue)used to filter and display the contents of the various tables.
What i would like to do is set the record source of (frmEditStock) and (frmEditQuotes) dependant upon the selection made in (cbobranchselect).
Each branch has 2 tables eg tblMOCStock and tblMOCQuotes etc etc,
If (cbobranchselect)= "UK" i would like to set frmEditStock and frmEditQuotes record source to tblUKStock and tblUKQuotes.
I have managed to do this on (frmDigitalCatalogue) by using a combo box on the actual form with the following code:
Select Case Me.cboBranchSelect
Case Is = "MOC"
Me.RecordSource = "tblMOCQuotes"
Having read what seems like 1000's of forums etc i cannot get this to work if the combo box is on a seperate form. Obviously i could add the combo box to each form and use the code above, however that would allow each branch to edit each others quotes/stock.
Is it possible to do this in a similar manner to above or am I barking up the wrong tree?
I am having problems setting a forms record source from a combo box selection on a seperate form.
I am developing a stock/quotes db to track all stock/quotes from several branches around europe which once completed I'm hoping to have hosted on a central server to allow all branches access to the db.
On startup the db displays a simple switchboard (frmSwitchBoard) containing 1 combo box (cbobranchselect) where the user is to select their branch either UK,MOC,Sweden,Germany,Italy,France and Spain.
After update of (cbobranchselect) a form opens with 3 buttons. This allows the user to open edit stock (frmEditStock), edit quotes (frmEditQuotes) both data entry forms, and a catalogue (frmDigitalCatalogue)used to filter and display the contents of the various tables.
What i would like to do is set the record source of (frmEditStock) and (frmEditQuotes) dependant upon the selection made in (cbobranchselect).
Each branch has 2 tables eg tblMOCStock and tblMOCQuotes etc etc,
If (cbobranchselect)= "UK" i would like to set frmEditStock and frmEditQuotes record source to tblUKStock and tblUKQuotes.
I have managed to do this on (frmDigitalCatalogue) by using a combo box on the actual form with the following code:
Select Case Me.cboBranchSelect
Case Is = "MOC"
Me.RecordSource = "tblMOCQuotes"
Having read what seems like 1000's of forums etc i cannot get this to work if the combo box is on a seperate form. Obviously i could add the combo box to each form and use the code above, however that would allow each branch to edit each others quotes/stock.
Is it possible to do this in a similar manner to above or am I barking up the wrong tree?