If an employee can have only one passport then tblPassport.MemberID should be a unique index. This might make the query updatable.
Duane Hookom
From: MS_Access_Professionals@yahoogroups.com <MS_Access_Professionals@yahoogroups.com> on behalf of khalidtanweerburrah@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com>
Sent: Saturday, July 22, 2017 3:18 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] New (Blank) Record button disabled
Sent: Saturday, July 22, 2017 3:18 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] New (Blank) Record button disabled
John,
in Form "CST Participants Entry" Main form i first get "CstName" from user, then in sub form "Data Entry CST Account Sub Form" for any member there is single entry for that member (member has his own choice to participate in any CST). And in tblPassport for each member there is a single entry for his "PassportNo".
Now please tell some way in this situation to add new record in sub form "Data Entry CST Account Sub Form".
Should this query be modified OR we have to break it in two queries ?
Regards,
Khalid
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
Khalid-
Your tables appear to be related like this:
CST Transaction <=== Members ===> tblPassport
A query on those three tables will produce the Cartesian product of rows in CST Transaction and rows in tblPassport for each Member. So for example, if a Member has 5 transactions and 3 passports, you'll get 15 rows for that Member.
That's not updatable - which would explain why you can't add a row.
John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
http://www.viescas.com/
www.viescas.com If you're at all interested in Microsoft Access or SQL Server, this is the place to be! Check out the book recommendations and all the cool links! |
(Paris, France)
On Jul 22, 2017, at 11:36 AM, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
__._,_.___
Posted by: Duane Hookom <duanehookom@hotmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (4) |
Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
.
__,_._,___
Tidak ada komentar:
Posting Komentar