Sorry for the dramatic title but last time I posted in here, you all were incredibly helpful and I need to call on that help again.
Right, I'll be the first to admit I'm not very well versed in databases (that was proved by my last question on here) but I have a problem that the boss is screaming about saying we need and I am at a loss as to how to do it despite trying all sorts of different things.
The database in question is designed to hold fleet vehicle lists for all our customers and all the times they have been inspected. As it stands, there are about 3000 vehicles and each need inspecting every month so we're dealing with a lot of data. The database has many tables but the two we need to concern ourselves with are tblVEHICLE and tblINSPECTION. As you'd imagine, the vehicle table holds a list of every single vehicle we're charged with looking after including Reg number, location and the frequency with which it gets inspected. The second table (inspection) contains every single inspection on these vehicles. So one inspection = one record. On this we have pretty much all the data ranging from the reg, to the dealer that inspected it to the inspection date. Because we look after fleets that span the county, and because all we can do is "request" inspections from independent dealers, we're kinda in their hands so it turns out that some vehicles have lots of inspections against them (the good dealers) whilst some have NEVER been inspected (the bad dealers). The query/report we need is to show all the vehicles in a particular fleet with the dates they have been inspected so that at a glance, we can see if they've been inspected in the last 30, 60 or 90 days.
Now then, I have tried everything and I just can't get it to work. My latest masterplan was to copy EVERY vehicle from the vehicle table to the inspection table and assign it an inspection date of 1980 so I could concentrate on the one table but I ran out of steam once I did this and I'm a bit lost. I'm sure it's possible. My boss, like anyone who doesn't understand anything like this thinks it's a simple 2 minute job so me struggling to do it makes him think I'm not trying.
Can anyone help me out? I'd owe you quite a few pints if you managed it.
Many thanks for any help and advice you can offer.
Adam
Right, I'll be the first to admit I'm not very well versed in databases (that was proved by my last question on here) but I have a problem that the boss is screaming about saying we need and I am at a loss as to how to do it despite trying all sorts of different things.
The database in question is designed to hold fleet vehicle lists for all our customers and all the times they have been inspected. As it stands, there are about 3000 vehicles and each need inspecting every month so we're dealing with a lot of data. The database has many tables but the two we need to concern ourselves with are tblVEHICLE and tblINSPECTION. As you'd imagine, the vehicle table holds a list of every single vehicle we're charged with looking after including Reg number, location and the frequency with which it gets inspected. The second table (inspection) contains every single inspection on these vehicles. So one inspection = one record. On this we have pretty much all the data ranging from the reg, to the dealer that inspected it to the inspection date. Because we look after fleets that span the county, and because all we can do is "request" inspections from independent dealers, we're kinda in their hands so it turns out that some vehicles have lots of inspections against them (the good dealers) whilst some have NEVER been inspected (the bad dealers). The query/report we need is to show all the vehicles in a particular fleet with the dates they have been inspected so that at a glance, we can see if they've been inspected in the last 30, 60 or 90 days.
Now then, I have tried everything and I just can't get it to work. My latest masterplan was to copy EVERY vehicle from the vehicle table to the inspection table and assign it an inspection date of 1980 so I could concentrate on the one table but I ran out of steam once I did this and I'm a bit lost. I'm sure it's possible. My boss, like anyone who doesn't understand anything like this thinks it's a simple 2 minute job so me struggling to do it makes him think I'm not trying.
Can anyone help me out? I'd owe you quite a few pints if you managed it.
Many thanks for any help and advice you can offer.
Adam