ChristineC
New member
- Local time
- Today, 21:37
- Joined
- Apr 1, 2001
- Messages
- 7
I'm doing a project for college which is nearly finished except for one last bit. The project is called the lotto ALerter. It emails users who match correctly 4 numbers or more in one line.
6 numbers plus a bonus number are drawn in any particulaar draw.
These numbers are stored in a database which I have created and are updated automatically after each successive draw.
I need a way to match these numbers with users selected numbers. (Is there a way I can write a query for it I'm using MS Access). I have been struggling with this for ages. If any you out there can help me with this or even give me some guidelines I would greatly appreciate it.
the layout of my tables are below
Thanks a million
Christine
Layout of tables:
1st Table
UserDetails Table
Name
UserName 'primaryKey
EmailAddress
password
2nd Table
Numbers Table:
LotDate
UserName 'Primary key,
NumbersLn1 'holds first line entered by users
NumbersLn2 'holds 2nd line enterd by users
NumbersLn3
NumbersLn4
NumbersLn5
NumbersLn6
Each line hold all 6 numbers selected by a user.
I need to match each number in the results table with each number entered by users. Upon matching 4 numbers correctly an email is sent to that user
3nd Table
Results Table: 'Hold details of a lottery draw
LotDate
Amount 'Jackpot amount
Num1 'hold 1st number drawn
Num2
Num3
Num4
Num5
Num6
Bonus 'holds bonus number drawn
The results table always only holds one record, upon insertion of new records, the previous old one is deleted.
6 numbers plus a bonus number are drawn in any particulaar draw.
These numbers are stored in a database which I have created and are updated automatically after each successive draw.
I need a way to match these numbers with users selected numbers. (Is there a way I can write a query for it I'm using MS Access). I have been struggling with this for ages. If any you out there can help me with this or even give me some guidelines I would greatly appreciate it.
the layout of my tables are below
Thanks a million
Christine
Layout of tables:
1st Table
UserDetails Table
Name
UserName 'primaryKey
EmailAddress
password
2nd Table
Numbers Table:
LotDate
UserName 'Primary key,
NumbersLn1 'holds first line entered by users
NumbersLn2 'holds 2nd line enterd by users
NumbersLn3
NumbersLn4
NumbersLn5
NumbersLn6
Each line hold all 6 numbers selected by a user.
I need to match each number in the results table with each number entered by users. Upon matching 4 numbers correctly an email is sent to that user
3nd Table
Results Table: 'Hold details of a lottery draw
LotDate
Amount 'Jackpot amount
Num1 'hold 1st number drawn
Num2
Num3
Num4
Num5
Num6
Bonus 'holds bonus number drawn
The results table always only holds one record, upon insertion of new records, the previous old one is deleted.