A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Creating new records in subform



 
 
Thread Tools Display Modes
  #1  
Old June 22nd, 2004, 11:39 AM
Neil Hiorns
external usenet poster
 
Posts: n/a
Default Creating new records in subform

I have a form in A2K that contains our customers addresses (linked to Customer table, with CustID as the primary key). Have a subform which contains schedule information, namely a date and time field for when a rep will visit them. This information is kept in a schedule table and has a SchedID (as primary) and CustID, which is used to link the subform to the main form.

I also have on the schedule subform some option buttons to indicate whether the appointment is the first or second appointment and also whether the appointment has been rescheduled.

What I woud like to do is, if an appointment is rescheduled or if a second appointment is booked, when the new date and time is booked a new record is created in the schedule table (perhaps using an 'update button'). It must not overwrite the original appointment record, as this is needed for tracking purposes.

I can get the form is work, but cannot find a way to create a new appointment record in the subform, which is still linked to each customer in the main form.

All suggestions welcomed.

  #2  
Old June 22nd, 2004, 01:06 PM
Neil Hiorns
external usenet poster
 
Posts: n/a
Default Creating new records in subform

Please ignore posting, I was looking for a complex solution when the answer was simply to add Navigation Controls (which I previously disabled) to the subform. This obviously means I can add a new record.

Doh!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.