You use the Query Builder to create a Query as you describe. Then you can
execute it either from the Query Builder window, from a macro, or from code.
In the Query Builder, select the Table as a data source, pull down all
fields into the Query Builder grid (a short way to do this is to
double-click the table and then drag the mouse pointer down). Then, under
the field you want to use to select the record, for example, the "ID" field,
in the Criteria line, type "[Enter ID to Select]". When you run the Query,
it will prompt the user to enter the ID.
If, by something else you said, you have a field named "Name", that is not a
good idea. "Name" is an Access reserved word and using it for a field name
can be confusing.
Larry Linson
Microsoft Access MVP
"Radek Michalski" <ra*******@op.pl> wrote in message
news:br**********@news.onet.pl...
Hi!
I'm looking for a macro, that let me pass trough all rows in table (ID
int - key, string Name) and everytime calls a query with a Name (or ID) as
parameter. I can't find this kind of macro.
I'm using Access 2000.
Greetings
Radek