Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Updating/adding problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Janet - 19 Jan 2008 22:16 GMT
Hello.

We have two tables:  'Customers' and 'CustNotes'

Both have a unique and related identifier called CUSTNO.

Our problem stems from the fact that the 'Customers' table is periodically
replaced in its entirety with an import procedure, and it contains no field
suitable for our use for notes.  Hence our creation of a second table to
contain the notes.  We can relate the two tables using the common field
CUSTNO and produce useful information from a simple query in forms
and reports.  But we're stymied on how to add new notes where they
didn't exist before.

Let's say we have this query-based form:

Customers.Custno:  123
Customers.CustName: Acme
CustNotes.Custno:
CustNotes.NoteData:

If we enter information into NoteData, the record won't save properly
because CustNotes:Custno is empty (zero).  If we manually type it in,
it's OK.

Is there some way to have CustNotes.Custno prepopulated with the
value of Customers.Custno to avoid this?

Thanks.
Tom van Stiphout - 19 Jan 2008 23:11 GMT
Yes.  This is a classic one-to-many situation, which in Access is
implemented with a form and subform. The form is bound to the
Customers table (NOT your query), and the subform to the CustNotes
table (NOT your query), and the subform control's LinkMasterFields and
LinkChildFields are set to CUSTNO. That should do it.

-Tom.

>Hello.
>
[quoted text clipped - 25 lines]
>
>Thanks.
Janet - 20 Jan 2008 05:01 GMT
DOH!

Thanks.

> Yes.  This is a classic one-to-many situation, which in Access is
> implemented with a form and subform. The form is bound to the
[quoted text clipped - 34 lines]
>>
>>Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.