I have an entry form that has a page control with multiple tabs to support multiple subforms. One tab has (for example)
Artists. Another tab has Singers. Another tab has Musicians.
A 4th tab has information for record deals. On this tab, there is a combo to choose the "type". A user can choose Artist, Singer or Musician.
Based on what they choose a combo becomes visible with a filtered list of just those artists, singers or musicians on this contracts record.
My issue is that I will open the entry form and be on the first contract. I go to the record deals tab and choose Artists as my type and I see a list in the (now showing) artists combo of the artists that are in this contract record on the artists tab. All good. Then I go to the next main contract record and choose Artist as the type again. The artists list show the artists from the last record. If I start typing the name of the artist that I know is on this contract I get the error message I set up in the notinlist code and then the combo refreshes and the right contract artists are available for that record.
Wierd!!!
I need a way to make the 3 combos refresh their source filter to the current contracts lists, as I navigate from contract to contract on the main form.
this code is on the deals subform on current:
Each cbo has a control source that limits to the parties of that type that are tied to that main contract record. It all ties correctly, but just doesn't refresh correctly.
Can anyone please help me figure this out?
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot
Artists. Another tab has Singers. Another tab has Musicians.
A 4th tab has information for record deals. On this tab, there is a combo to choose the "type". A user can choose Artist, Singer or Musician.
Based on what they choose a combo becomes visible with a filtered list of just those artists, singers or musicians on this contracts record.
My issue is that I will open the entry form and be on the first contract. I go to the record deals tab and choose Artists as my type and I see a list in the (now showing) artists combo of the artists that are in this contract record on the artists tab. All good. Then I go to the next main contract record and choose Artist as the type again. The artists list show the artists from the last record. If I start typing the name of the artist that I know is on this contract I get the error message I set up in the notinlist code and then the combo refreshes and the right contract artists are available for that record.
Wierd!!!
I need a way to make the 3 combos refresh their source filter to the current contracts lists, as I navigate from contract to contract on the main form.
this code is on the deals subform on current:
Code:
Private Sub Form_Current()
If Me.FKPartyType = 1 Then
Me.cboArtist.Visible = True
Me.cboSinger.Visible = False
Me.cboMusician.Visible = False
ElseIf Me.FKPartyType = 2 Then
Me.cboMusician.Visible = True
Me.cboSinger.Visible = False
Me.cboArtist.Visible = False
ElseIf Me.FKPartyType = 3 Then
Me.cboMusician.Visible = False
Me.cboSinger.Visible = True
Me.cboArtist.Visible = False
Else
Me.cboMusician.Visible = False
Me.cboSinger.Visible = False
Me.cboArtist.Visible = False
End If
end sub
Each cbo has a control source that limits to the parties of that type that are tied to that main contract record. It all ties correctly, but just doesn't refresh correctly.
Can anyone please help me figure this out?
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot