Forgive me, I'm a newb at this, but I'm trying to help a charitable organization who have migrated their database from an Access 2000 MDB file to SQL Server Express via an Access ADP file. They have a main table (Mailing List) and a Main Form, and other tables relating to the Mailing List Table (such as Pledges, PhoneNumbers, etc, which have their own sub-forms inside the Main Form.
On the old MDB file, they have a field in the Pledges sub-form, inside the Main Form, that has the following SQL for the "Row Source":
SELECT Pledges.PledgeI D
FROM Pledges
WHERE (((Pledges.Mail ingListID)=[Forms]![Main Input Form]![MailingListID]))
ORDER BY Pledges.PledgeI D DESC;
It works fine in the MDB file, but in the new ADP file, made after moving the DB to SQL Server, that same field in that same form no longer accepts the same Row Source SQL. It doesn't like the "!" (exclamation points). Does anyone know how to refer to form data in a WHERE clause without using the exclamation points? What we're tring to do is to grab all the pledges from the Pledge table that match up for the person (MailingListID) that is currently showing in the Main Form (the Pledge Form is a subform inside the Main Form).
I'm in way over my head and would appreciate any help anyone can give me. Thanks.
Mike
On the old MDB file, they have a field in the Pledges sub-form, inside the Main Form, that has the following SQL for the "Row Source":
SELECT Pledges.PledgeI D
FROM Pledges
WHERE (((Pledges.Mail ingListID)=[Forms]![Main Input Form]![MailingListID]))
ORDER BY Pledges.PledgeI D DESC;
It works fine in the MDB file, but in the new ADP file, made after moving the DB to SQL Server, that same field in that same form no longer accepts the same Row Source SQL. It doesn't like the "!" (exclamation points). Does anyone know how to refer to form data in a WHERE clause without using the exclamation points? What we're tring to do is to grab all the pledges from the Pledge table that match up for the person (MailingListID) that is currently showing in the Main Form (the Pledge Form is a subform inside the Main Form).
I'm in way over my head and would appreciate any help anyone can give me. Thanks.
Mike
Comment