well, first of all, to call a macro, you have to be entering data via a
form, not directly into a table.
if it's always the same city and zip, you can set the Default value of the
form controls (bound to the city and zip fields) to the appropriate values;
they'll be entered automatically each time a new record is added using that
form, but the Default Value will have no effect if you change data in an
existing record.
if it's NOT always the same city and zip, you'll need to set Conditions in
the macro to assign the correct city and zip according to some criteria that
the macro has access to read; see Pete D.'s post regarding A2007 re the
SetValue action. or see Jeff Boyce's suggestion regarding the use of
combobox controls on the form, instead of using a macro.
hth
halok said:
When I am entering data in a database there are many times I have to type the
same entry, such as a city or zip code. How do I create a macro to do
that?