>thanks for your reply, it was very quick!
>i know data is not stored on the tab control, but i have got a button that
[quoted text clipped - 4 lines]
>want the data in the tab to be deleted so i can create a new room but under
>the same report.
I think what you actually want is not to "delete" the data (which implies
permanently and irrevokably deleting the data from your Table), but just to
move the form to display the new, empty record. This can be done using the
builtin navigation buttons with no effort at all, and with only a tiny bit
more effort to create a new command button to move to the new record.
The user will see a blank form (or subform) ready for new data entry.
Bear in mind that a Report in Access jargon is NOT a data entry form and is
not editable - it's a way of printing data out. A Form is what you would use
for this kind of data entry and editing.
I'd still be interested to know your table structure. If you have a one to
many relationship from Buildings to Rooms, then I would hope that you have a
one to many relationship between a table of Buildings (displayed on your
mainform) and a separate table of Rooms (displayed on a subform). My advice is
predicated on this assumption; if the assumption is wrong please post back
with your actual structure.

Signature
John W. Vinson [MVP]
natalie - 10 Apr 2008 14:43 GMT
Yeah you are right, that is what I want to do.
My tables and relationships are a little more complicated, but I tried to
simple it down in my initial posting.
For my project, the surveyor will go out to a property and create a
surveyor report. This includes the creation of a report number, selecting
surveyor ID and choosing the property address. In the “detail” section of
the form, it has a tab control which has a different area to select data bout
the room and problems. Such as, the first tab is about what floor it is on,
2nd is about the room, 3rd is about the problems and solutions the surveyor
picks. Once created and saved in the database, a worker will need to create
their work report which is based on this.
On the work report form, the worker selects the property address which then
searches for all of the fields in the Surveyor report and displays them. They
can now see what work needs to be done and where. They have two fields they
can use which is the “solution1done” and “solution2done”. As they complete
the solutions, they tick the checkboxes. This is save din the database.
For my relationships for these two reports, I have:
SurveyorReport:Report number
SurveyorID
SiteID
FloorSelection
RoomSelection
BedroomNumber
Locatoion of work
Problem1
Problem2
Solution
SubSolution
WorkReport:StaffId
ReportNumber
StartDate
EndDate
Solution1Done
Solution2Done
I have got that 1 surveyor can do many surveyor reports, and 1 worker can do
many work report. Both reports are related by their Reportnumber
Sorry it is long winded-my project is hard to describe!