L
Lee Grant
Hello folks,
I'm in a pickle and it's because I'm not great at Access. I have a stack of
books here and I cannot seem to find my way around a few problems.
I have an existing 'database' system using Excel but I thought it was time
to grow up and learn how to use Access...
I have three populated tables:
Table 1 - Runner Information
RunnerID (PK)
firstname
surname
dob
sex
address1
address2
address3
town/city
county
landline
mobile
email
Table 2 - Race_Details
Race_Details_ID (PK)
EventID
racenumber
ageonraceday
category
dateofentry
lap1
lap2
total
status
source
tshirtsize
RunnerID
Fee
paymenttype
chequenumber
cashed_batch
ssaeenc
emailsent
informationposted
phonecallmade
Table 3 - Event
EventID (PK)
dateofevent
nameofevent
These fields have been populated with data from the Excel sheets. In the
Excel versions, a lot of the data was calculated and then stored and I need
to do the same in Access. I have created a Form that displays the content
of the tables but I need to add the calculations to:
1) Take the 'dob' field from the Runner Information table and the
'dateofevent' from the Event table and populate the 'ageonraceday' from the
'Race Details' table - I was given some help on this one earlier this week
but the database has been changed and it now no longer works :-(
2) I then want to take the 'sex' from the 'Runner Information' table and the
'ageonraceday' from the 'Race Details' table and use it to calculate the
'category' field in the 'Race Details' table. The categories are such:
Males less than 35 are categorised as 'M'
Males between 35 and 39 are categorised as 'M35'
Males between 40 and 44 are categorised as 'M40'
Males between 45 and 49 are categorised as 'M45'
Males between 50 and 54 are categorised as 'M50'
Males between 55 and 59 are categorised as 'M55'
Males between 60 and 64 are categorised as 'M60'
Males between 65 and 69 are categorised as 'M65'
Males between 70 and 74 are categorised as 'M70'
Males between 75 and 79 are categorised as 'M75'
The females are categorised that same except they are prefixed 'F'
3) Finally, when I enter new information into the 'Race Details' table, I
need to ensure that the 'racenumber' value is unique, sequential for all new
records that have the EventID of '2009'.
I know this is a lot of requests. I cannot code for toffee but I can write
a mean excel formula. I think that is some of the problem - I'm thinking
Excel and not managing to think Access.
Any help would really be appreciated.
Kindest Regards,
Lee
I'm in a pickle and it's because I'm not great at Access. I have a stack of
books here and I cannot seem to find my way around a few problems.
I have an existing 'database' system using Excel but I thought it was time
to grow up and learn how to use Access...
I have three populated tables:
Table 1 - Runner Information
RunnerID (PK)
firstname
surname
dob
sex
address1
address2
address3
town/city
county
landline
mobile
Table 2 - Race_Details
Race_Details_ID (PK)
EventID
racenumber
ageonraceday
category
dateofentry
lap1
lap2
total
status
source
tshirtsize
RunnerID
Fee
paymenttype
chequenumber
cashed_batch
ssaeenc
emailsent
informationposted
phonecallmade
Table 3 - Event
EventID (PK)
dateofevent
nameofevent
These fields have been populated with data from the Excel sheets. In the
Excel versions, a lot of the data was calculated and then stored and I need
to do the same in Access. I have created a Form that displays the content
of the tables but I need to add the calculations to:
1) Take the 'dob' field from the Runner Information table and the
'dateofevent' from the Event table and populate the 'ageonraceday' from the
'Race Details' table - I was given some help on this one earlier this week
but the database has been changed and it now no longer works :-(
2) I then want to take the 'sex' from the 'Runner Information' table and the
'ageonraceday' from the 'Race Details' table and use it to calculate the
'category' field in the 'Race Details' table. The categories are such:
Males less than 35 are categorised as 'M'
Males between 35 and 39 are categorised as 'M35'
Males between 40 and 44 are categorised as 'M40'
Males between 45 and 49 are categorised as 'M45'
Males between 50 and 54 are categorised as 'M50'
Males between 55 and 59 are categorised as 'M55'
Males between 60 and 64 are categorised as 'M60'
Males between 65 and 69 are categorised as 'M65'
Males between 70 and 74 are categorised as 'M70'
Males between 75 and 79 are categorised as 'M75'
The females are categorised that same except they are prefixed 'F'
3) Finally, when I enter new information into the 'Race Details' table, I
need to ensure that the 'racenumber' value is unique, sequential for all new
records that have the EventID of '2009'.
I know this is a lot of requests. I cannot code for toffee but I can write
a mean excel formula. I think that is some of the problem - I'm thinking
Excel and not managing to think Access.
Any help would really be appreciated.
Kindest Regards,
Lee