pinstripe
Programmer
- Dec 27, 2004
- 52
Hi all,
have a form with 2 unbound combo's and a subform.
First combo has RowSourceType= ValueList and RowSource = "Plate";"Driver";"Company";
Second combo and i fill RowSource with VBA:
If Me.cboCombo1 = "Plate" Then
Sql = "SELECT [Vozilo].[IdVozilo], [Vozilo].[Plate] FROM Vozilo;"
Me.cboCombo2.RowSource = Sql
Me.cboCombo2.Requery
And same if it is "Driver" or "Company".
Then i have subform linked with child fields "IdVozilo"(unique number)
and master fields "cboCombo2"
But the point is that beacuse of that i need to have 3 subforms - 1 for each("Plate";"Driver";"Company".
I wanna to have just one subform no matter which one is picked up and that tha data would still be correct.
Thank you for your help.
Best,
have a form with 2 unbound combo's and a subform.
First combo has RowSourceType= ValueList and RowSource = "Plate";"Driver";"Company";
Second combo and i fill RowSource with VBA:
If Me.cboCombo1 = "Plate" Then
Sql = "SELECT [Vozilo].[IdVozilo], [Vozilo].[Plate] FROM Vozilo;"
Me.cboCombo2.RowSource = Sql
Me.cboCombo2.Requery
And same if it is "Driver" or "Company".
Then i have subform linked with child fields "IdVozilo"(unique number)
and master fields "cboCombo2"
But the point is that beacuse of that i need to have 3 subforms - 1 for each("Plate";"Driver";"Company".
I wanna to have just one subform no matter which one is picked up and that tha data would still be correct.
Thank you for your help.
Best,