G
Guest
-Using Access 2000-
I have a customer who wants to update their database (which is the default
db for a program called OpenTrackPlus, so all of the field names are
required to
remain the same)from a Comma-Delimited txt file from an old DBase II
program. Needless to say the field names and data do not match on either side.
The txt file contains 2 fields "Unit Address" (which is the address of a
homeowner in a community), and "Paid" (which has 5 variables, one is Paid and
the others mean that they have not paid). I've imported the txt file into the
db and named it Pools (because that's what this is all about, pool access).
The table in the database has many fields, so I created a query to draw out
the fields "Address1" (which contains multiples of the same address based on
the number of people living in the household) and "Member_Auth" (which states
Active or Declined)
Now, if a household has not paid and has one of the other "Paid" status',
then the "Member_Auth" needs to say Declined, and yes this would affect the
entire
household.
So, what I am looking for is how to write a module using the following:
If "Paid" (from table "Pools") is equal to Paid
Then "Member_Auth" (from "Tbl_Members") says Active
Else "Member_Auth" says Declined
As you can see, I have the condition, but I am lost on the rest of the code.
Can someone help me?!?!
I have a customer who wants to update their database (which is the default
db for a program called OpenTrackPlus, so all of the field names are
required to
remain the same)from a Comma-Delimited txt file from an old DBase II
program. Needless to say the field names and data do not match on either side.
The txt file contains 2 fields "Unit Address" (which is the address of a
homeowner in a community), and "Paid" (which has 5 variables, one is Paid and
the others mean that they have not paid). I've imported the txt file into the
db and named it Pools (because that's what this is all about, pool access).
The table in the database has many fields, so I created a query to draw out
the fields "Address1" (which contains multiples of the same address based on
the number of people living in the household) and "Member_Auth" (which states
Active or Declined)
Now, if a household has not paid and has one of the other "Paid" status',
then the "Member_Auth" needs to say Declined, and yes this would affect the
entire
household.
So, what I am looking for is how to write a module using the following:
If "Paid" (from table "Pools") is equal to Paid
Then "Member_Auth" (from "Tbl_Members") says Active
Else "Member_Auth" says Declined
As you can see, I have the condition, but I am lost on the rest of the code.
Can someone help me?!?!