V
vasilepop
Hi all,
I have 2 tables USERS and BILLS with the following structure:
USERS:
ID - Primary key
NAME, SURNAME, ADDRESS, ...
and
BILLS
ID - Foreign Key
DATA_JAN, DATA_FEB, DATA_MAR .. DATA_DEC
In the second table there are 12 fields, for each month of the year an
in these fields there are inserted the dates when the users have paid.
I would like to perform a SELECT to get the NAME, SURNAME and the LAS
PAY.
LAST PAY should be the last day of the month from DATA_JAN ... DATA_DE
where DATA_* <> NULL.
How can I do that ? I supose I have to write a function which wil
perform that ? Can somebody help me please ?
Please note that I'm a newbie to VB + Access.
Thank you,
Vasil
I have 2 tables USERS and BILLS with the following structure:
USERS:
ID - Primary key
NAME, SURNAME, ADDRESS, ...
and
BILLS
ID - Foreign Key
DATA_JAN, DATA_FEB, DATA_MAR .. DATA_DEC
In the second table there are 12 fields, for each month of the year an
in these fields there are inserted the dates when the users have paid.
I would like to perform a SELECT to get the NAME, SURNAME and the LAS
PAY.
LAST PAY should be the last day of the month from DATA_JAN ... DATA_DE
where DATA_* <> NULL.
How can I do that ? I supose I have to write a function which wil
perform that ? Can somebody help me please ?
Please note that I'm a newbie to VB + Access.
Thank you,
Vasil