473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Update table via pop up forms

Roy
I use a A2000 application.I use a Dataentry form to update few
tables.This form has subforms to populate the related tables.Recently
we added two new tables.Let's call table1 and table2.While table 1 is
linked to the maintable with a EvID field,it is linked to the table2 by
a field TaID.Since the space in the main dataentry form was not
sufficient,i decided to use a pop up form with a subform to accomodate
the table 1 and table2.I open the pop up form with the criteria of
related EvID.

When I try to enter data in the pop up form,it comes with a error
saying,related entry not found in the Main table.How do i solve this

Thanks for your help,

Roy

Jul 20 '06 #1
2 1906
Did you set the value of the parent's record ID in your code? If it's
a popup form, there's no linking going on behind the scenes.
(LinkChild/Linkmaster properties). So you have to copy the parent's
record ID into the child form. Otherwise, when you try to save the
record, it will be missing the foreign key for RI.

Jul 20 '06 #2
Roy
Thanks for the reply.Let me explain further.The parentID of the master
form is a autonumber.The number gets generated.How would I set the
value of the parentID?I tried to work around this by using a Dmax
function and then passing this value.But I don't know how to copy this
value to the child?On the main form of the pop up,after the tabbing the
last control,it comes with the error saying,"no related entry found".

pi********@hotmail.com wrote:
Did you set the value of the parent's record ID in your code? If it's
a popup form, there's no linking going on behind the scenes.
(LinkChild/Linkmaster properties). So you have to copy the parent's
record ID into the child form. Otherwise, when you try to save the
record, it will be missing the foreign key for RI.
Jul 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joe Fetters via .NET 247 | last post by:
Have googled and read the VS.NET documentation can't seem to getthe answer to the following. Environment: Framework 1.1 VB.NET WinForm Access database Using all automagic tools (DataAdapter...
7
by: gthompson | last post by:
Is this possible: Read fields(rows/columns) from one sql database table (TableA). Then edit/update the same 'field' in TableA; and in TableB edit/update a different field - all at the same time?...
2
by: explode | last post by:
I made nova oledbdataadapter select update insert and delete command and connection veza. dataset is Studenti1data, I made it by the new data source wizard,and made datagridview and bindingsource...
5
by: explode | last post by:
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can...
1
by: pbj2009 | last post by:
I am trying to update the titles of all the employees who ase listed as Sales Representative to say Sales Partners but when I execute this code it says no rows are effected and their titles are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.