Generation of new subform record based on combobox AND main form
- From: "kevin via AccessMonster.com" <u35738@uwe>
- Date: Thu, 02 Aug 2007 15:43:25 GMT
I have an unbound combobox (cboDOVSearchChart) whose row source is a query
that brings up all of the dates associated with a particular medical record
number. It consists of two columns, chart ID (hidden), and date. Each
combination of MR and date yields a unique (autonumber) chart ID. The first
column serves as the link field to associate with a subform that is based off
of chart ID and contains all of the chart information.
Is there any way to use the NotInList event for this combobox to create a new
record in the subform that will contain the next autonumber for Chart ID with
the MR number from the main chart and the date of visit that is entered in
the combobox (and then display this record)? The table (Patient_Visits) off
of which the subform is based has both MR and date of visit as required
fields; could this be causing the problem?
Thank you in advance for any direction/advice you can offer.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200708/1
.
- Follow-Ups:
- Prev by Date: Re: Main form won't stay maximized after a report closes
- Next by Date: Re: looking up zipcode in table and inserting it in a field
- Previous by thread: RE: How to gather the values of combo box selected item
- Next by thread: RE: Generation of new subform record based on combobox AND main form
- Index(es):
Relevant Pages
|