Because I am new to VB in Access, I was helped by someone who was quite
experienced in VB.
The database is used to keep a record of machines being serviced.
It was origonally in Excel which made it difficult to find specific data.
This database has evolved. It started out as just one form with a combo box
and several text boxes. The user typed in the machine serial number and all
the fields for that machine fill out the text boxes. (hence 'recordsetclone').
Then I was asked to search by customer, or technician, or salesperson.
So I just repeated what I had for all the combo boxes.
The machines are serviced over a 12 month period, so the next request was to
show all the machines for one customer over the 12 months. Hence the need for
the datasheet subform. (I could see no other way of displaying several
machines and several dates at the same time).
The next problem was that some months some machines are not serviced for
different reasons, now I need to put in extra fields to show the reason for
no service. There is no way I could fit 25 coloums on on page so the problem
started with choosing between two fields for each month, (service date or no
service reason).
So we have about 100 customers, over 600 machines and 16 technicians.
The requirement is to find the data by machine, customer, technician or
sales person, and show the 12 month history.
Each of the above is in seperate table, in the order listed and linked to
the next table.
The machine table contains; Machine model, serial number, and 2 fields for
each month, (service date, no service reason), and a lookup column for
customer.
The customer table contains; Account number, name, 3 address fields,
postcode, telephone, contact name, and a lookup column for technician.
The technician table contains; name, area, bonus level, and a lookup column
for sales person.
One salesperson has several technicians, one technician has several
customers and one customer has several machines.
All parts of the main form are locked except for the combo boxes, to update
a second form is used which is password protected.
I hope this all makes sense and is not to long winded.
It is interesting that I have had advice from programmers in the past and no
one has suggested the design is flawed.
This is in no way a critisism, I am grateful to you for your time and help
and am interested to see the alternatives.
Thank you for your help patience and understanding to date.