G
Guest
Sorry if this has been answered, I couldn't find the exact problem elsewhere!
I'm only a beginner at this but when i select the right ID from the first
combo box, i got it to come up with the correct related IDs in the second
combo box , like it's meant to! but when I move to the next record (a new
one, or the last one, or anything), the second combo box doesn't retain the
record.
As in, as you scroll through each record, none of the second combo box
'records' are kept, they are all blank until you click on them, then they
come up with your choices,
UNLESS you go to a record that has the same first combo box ID selected as
whatever you last clicked on .
I'm sure that is all very unclear now!
Perhaps to give you a better idea- the form is a record of payments, first
combo (combo 17) has the payor, second combo (combo26) has the child they're
paying for, each new record is a payment.
I originally used some knowledge base article to first do it, but think I
had to modify something anyway.
Here's the code for the boxes after update and current as it looks now.
Private Sub Combo17_AfterUpdate()
Me!Combo26.Requery
Me!Combo26.SetFocus
End Sub
Private Sub Form_Current()
Me.Combo26.Requery
End Sub
The row source for the 2nd combo is based on a query with this criteria
(also based on the article)
IIf(IsNull([Forms]![Sponsorship Payments Form]![Combo17]),[Sponsor
ID],[Forms]![Sponsorship Payments Form]![Combo17])
i've messed around with it so much trying so many ways to fix it that i
can't remember what it originally looked like! but i still had the same
problem
Please can anybody help? I can't figure out what to do.
The really bugging thing is that I (THINK) I had it working for a while
(possibly), but I might have had to do something different from the article,
but I can't remember?! and while I was messing around trying to get something
else 2 work, it stopped doing what it was meant to do. (and wouldn't you know
it my backups all became useless for various reasons).
I'm only a beginner at this but when i select the right ID from the first
combo box, i got it to come up with the correct related IDs in the second
combo box , like it's meant to! but when I move to the next record (a new
one, or the last one, or anything), the second combo box doesn't retain the
record.
As in, as you scroll through each record, none of the second combo box
'records' are kept, they are all blank until you click on them, then they
come up with your choices,
UNLESS you go to a record that has the same first combo box ID selected as
whatever you last clicked on .
I'm sure that is all very unclear now!
Perhaps to give you a better idea- the form is a record of payments, first
combo (combo 17) has the payor, second combo (combo26) has the child they're
paying for, each new record is a payment.
I originally used some knowledge base article to first do it, but think I
had to modify something anyway.
Here's the code for the boxes after update and current as it looks now.
Private Sub Combo17_AfterUpdate()
Me!Combo26.Requery
Me!Combo26.SetFocus
End Sub
Private Sub Form_Current()
Me.Combo26.Requery
End Sub
The row source for the 2nd combo is based on a query with this criteria
(also based on the article)
IIf(IsNull([Forms]![Sponsorship Payments Form]![Combo17]),[Sponsor
ID],[Forms]![Sponsorship Payments Form]![Combo17])
i've messed around with it so much trying so many ways to fix it that i
can't remember what it originally looked like! but i still had the same
problem
Please can anybody help? I can't figure out what to do.
The really bugging thing is that I (THINK) I had it working for a while
(possibly), but I might have had to do something different from the article,
but I can't remember?! and while I was messing around trying to get something
else 2 work, it stopped doing what it was meant to do. (and wouldn't you know
it my backups all became useless for various reasons).