G
Glint
Hi Guys,
Please help me out of this problem.
Because I don't want to use the NotInTheList Event for my combo boxes, I
have this code in the Close Event of my Membership form:
If IsLoaded("Donations") Then 'Forms!Donations!Donor.Requery
I simply hide the Donations form while a user updates the Membership form.
But I have just found that the code appears not work (I do not find my new
member until the next time the Donations form is opened) after I changed the
record source of the Donors combo to a union query:
SELECT Membership.SerialNumber, [Surname] & ", " & [Firstnames] AS Name,
Membership.Zone
FROM Membership
ORDER BY [Surname] & ", " & [Firstnames]
UNION ALL SELECT 10000000+Friends.FriendID, [Surname] & ", " & [OtherNames]
AS Name, Friends.Zone
FROM Friends
UNION ALL SELECT 20000000+Program.ProgramID, Program.Program, Program.Zone
FROM Program
ORDER BY Name;
I need to display all possible sources of donations in the combo, hence the
need for the union query. The code used to work when the record source of the
Donor combo was just the Membership table only.
Interestingly, the code works when a record is deleted from any of the
tables of the union query, but refuses to acknowledge a new record.
Please help me out.
Please help me out of this problem.
Because I don't want to use the NotInTheList Event for my combo boxes, I
have this code in the Close Event of my Membership form:
If IsLoaded("Donations") Then 'Forms!Donations!Donor.Requery
I simply hide the Donations form while a user updates the Membership form.
But I have just found that the code appears not work (I do not find my new
member until the next time the Donations form is opened) after I changed the
record source of the Donors combo to a union query:
SELECT Membership.SerialNumber, [Surname] & ", " & [Firstnames] AS Name,
Membership.Zone
FROM Membership
ORDER BY [Surname] & ", " & [Firstnames]
UNION ALL SELECT 10000000+Friends.FriendID, [Surname] & ", " & [OtherNames]
AS Name, Friends.Zone
FROM Friends
UNION ALL SELECT 20000000+Program.ProgramID, Program.Program, Program.Zone
FROM Program
ORDER BY Name;
I need to display all possible sources of donations in the combo, hence the
need for the union query. The code used to work when the record source of the
Donor combo was just the Membership table only.
Interestingly, the code works when a record is deleted from any of the
tables of the union query, but refuses to acknowledge a new record.
Please help me out.