I described a way of getting a sequential number. It could be the PK or
another field (DocNo?).
To select a technician you need a way to generate the list. Best way is
almost surely a technician table.
It seems you have the right general idea for the structure. I assume records
in tFleet are individual vehicles, in tService of occasions when the vehicle
was in for service; and tDocDetails the service items (rotate tires, oil
change, etc.) for a particular tService record. I'm not sure what
tServiceDocument is for.
The way I understand it, you want to generate a service record, print out a
job card, and give it to the technician. When the service is complete you
will go back to the record and fill in the information from the handwritten
notes on the job card.
As mentioned, I described a way of generating a sequential number. It would
take place in the form bound to tService. If this is a multi-user database
(i.e. more than one concurrent user) you need to guard against duplication of
the number, which I can describe if needed.
As for the printed job card, base a report on tService. I expect it would
consist of the sequential number, the technician's name, the date booked, and
maybe a few others. For the rest you can use labels and lines for the
technician to write information.
To start the record you can either go to the fleet (vehicle) form, and add a
new record to the Service subform; or you can use a standalone Service form
to select the vehicle. In either case FleetNo is the FK. In the first case
it is generated due to the Link Child and Link Master properties of the
subform control; in the second it is selected manually.
Let me point out that the Details records are in a subform within the Service
form (or subform). This subform within a subform can be in datasheet view,
but it is not quite the same as a subdatasheet. This may be just a
terminology issue, but I want to be sure.
For the first part of your reply, the combo box wizard can guide you toward
selecting a Fleet record.
First off thanx to all for thd quick reply.
OK, I'm not completely new to access and is familliar with relationships etc.
So here's what I got so far:
tFleet
FleetNo [PK]
CurrentReg
VinNo
EngineNo
etc.
tService
ServiceID [PK]
DateBooked
FleetNo [FK]
ODO
ServiceKm
ServiceProvider
Technician
DateIn
DateOut
OrderNo
DocNo
tSeviceDocument tDocDetails
DocID [PK] DocDetID
DocNo DocID
ServiceID [FK] Product
etc Qty
etc
I've got a form: FleetService with an unbound lookup cbo to filter for the
FleetNo I want to use/find. Then on the sam form I've got tService as a
subform which allows me to view all service records for selected vehicle. In
the subform I've got a subdatasheet tDocDetails so I can view all "documents
related to a specific Service.
I was wondering if and how I could select a tchnician as well as a Fleet No
and have this data added to a blank template/check sheet [The JobCard] which
I could then print out for the Technician to use. Lastly I would like to
give each Jobcard a unique number that's also generated so that I could look
up which technician still have outstanding Jobcards.
I know I'm asking a lot, but thanks in advance for any ideas.
In Access you generate records, which may be used to print a report. What
you print depends in part on how the database is designed.
[quoted text clipped - 73 lines]
the job. Is it possibble to generate such a document, as well as giving each
document an unique number.
--
Message posted via AccessMonster.com
.