Access-Database that accumlates & doesn't overwrite

bjllady3333

New Member
Joined
Mar 28, 2003
Messages
1
I am trying to create a data base for equipment at our company. I can create the table etc. but I do not know how to keep the new information from overwriting what is already there. For example I want Loader #1045 to have the oil changed on 1/28/03 and again on 3/28/03 and I want to bring up the table I have created to enter information in. Enter 1045 and all the information for service on that date and hit enter and have it ADDED to what is already in the record- NOT overwrite what is there already.
I also want to be able to do querys by the last information entered. Such as all machines that have had 1000 miles put on it should print out.
Am I asking too much? Please help
bjllady3333@go.com
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi bjllady,

Sounds like you need a new table for maintenance. It could be set up like:

TblMaint
MaintID - autonumber - primary key
MachineID - number
this is where the ID for loader #1045 etc would go
ServiceTypeID - number
oil change or whatever
Date - date
when the service was performed

See really, you want the machine associated with a maintenance record, not as a field on the machine table.

Data as follows demonstrates multiple services for one machine:
Book2
ABCD
1TblMaint
2MaintenanceIDMachineIDServiceTypeIDDate
31104511/1/2003
42104522/1/2003
53104523/1/2003
64105011/2/2003
75105022/5/2003
86105111/3/2003
9
10TblServiceType
11ServiceTypeIDServiceTypeDescription
121oilchange
132generalcleaning
Sheet1


As far as your query goes, create a new query, add the machine table, and enter into the criteria under milage, [enter mileage].

Now use the wizard to make a report based on this query. Now when you run the report, Access will prompt you for the mileage, and you could enter 1000, or whatever.

HTH,
 
Upvote 0

Forum statistics

Threads
1,221,517
Messages
6,160,266
Members
451,635
Latest member
nithchun

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top