G
Guest
Table "Contacts" is on the many side of a 1 - many relationship, so I have
the following fields:
Primary key - ContactID (Autonumber) Unique
Foreign key - AcctNum (Text)
Text Field - LastName (Text)
In a module, I am running a search on this table that looks like the
following:
rsContacts.FindFirst ( "[AcctNum] = '" & AcctNum & "'") where rsContacts
has been set to:
Set rsContacts = db.OpenRecordset("Contacts", dbOpenDynaset)
and that works fine but I want the results to be returned to me in the order
they were entered (because they will then be inserted into a document in this
order after going through a loop), meaning by "ContactID" from lowest number
to greatest. What can I add into my find criteria (or some other way) to
get my desired results. Which in other words is:
Ultimately I want all [LastName] for [AcctNum] = xxxx sorted ascending by
[ContactID].
THANKS in advance!
the following fields:
Primary key - ContactID (Autonumber) Unique
Foreign key - AcctNum (Text)
Text Field - LastName (Text)
In a module, I am running a search on this table that looks like the
following:
rsContacts.FindFirst ( "[AcctNum] = '" & AcctNum & "'") where rsContacts
has been set to:
Set rsContacts = db.OpenRecordset("Contacts", dbOpenDynaset)
and that works fine but I want the results to be returned to me in the order
they were entered (because they will then be inserted into a document in this
order after going through a loop), meaning by "ContactID" from lowest number
to greatest. What can I add into my find criteria (or some other way) to
get my desired results. Which in other words is:
Ultimately I want all [LastName] for [AcctNum] = xxxx sorted ascending by
[ContactID].
THANKS in advance!