G
Guest
I'm working with a simple membership database for a political action group.
What I want to do is very simple and has nothing to do with user input. I
just want to update the records with information myself, behind the scenes.
Specifically, for each record, I want to fill the CONGRESSIONAL DISTRICT and
CONGRESSPERSON fields based on the values of the ZIP field.
In the simple language of database programming - which apparently no longer
exists - this is what I want to do:
USE MEMBERS INDEX ZIP
LOCATE for ZIP="10300"
DO WHILE ZIP < "10304"
REPLACE CONGRESSPERSON with "Vito Fossella (R)"
REPLACE CONGRESSIONAL DISTRICT with "13"
NEXT
ENDDO
I've already spent over an hour trying to get this simple program into a a
macro in Access (XP Pro) with Set Value. But something is wrong with the
expressions and I can't get it to work.
How can something so simple get so complicated?
JB
What I want to do is very simple and has nothing to do with user input. I
just want to update the records with information myself, behind the scenes.
Specifically, for each record, I want to fill the CONGRESSIONAL DISTRICT and
CONGRESSPERSON fields based on the values of the ZIP field.
In the simple language of database programming - which apparently no longer
exists - this is what I want to do:
USE MEMBERS INDEX ZIP
LOCATE for ZIP="10300"
DO WHILE ZIP < "10304"
REPLACE CONGRESSPERSON with "Vito Fossella (R)"
REPLACE CONGRESSIONAL DISTRICT with "13"
NEXT
ENDDO
I've already spent over an hour trying to get this simple program into a a
macro in Access (XP Pro) with Set Value. But something is wrong with the
expressions and I can't get it to work.
How can something so simple get so complicated?
JB