473,395 Members | 1,468 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,395 software developers and data experts.

Problem with new records in subform

Hello,

In an Access 2003 Project, I have a main form called
‘frmRCAddendumInputMain' that contains a subform called
‘frmRCAddendumInputSub'. The main form opens upon clicking a button
from another form called ‘frmRCMain'. In frmRCAddendumInputMain, there
is an unbound text box called ‘PassPermnum' that gets its value from a
field called ‘Permnum' on frmRCMain. The calculation in ‘PassPermnum'
is as follows;

=[Forms]![frmRCMain]![Permnum]

There is no ‘RecordSource' for frmRCAddendumInputMain. The record
source for frmRCAddendumInputSub is a SQL Server 2000 View. The Link
Master field is ‘PassPermnum' and the Link Child Field is called
‘ADPermnum'. You can think of ‘Permnum' as a student ID.

The View that is the Record Source for frmRCAddendumInputSub contains
fields from two SQL Server 2000 tables. One table is called
‘Student_Data_Main' and the other table is called ‘tblRCAddendumEL'.
The Unique Table in frmRCAddendumInputSub is ‘tblRCAddendumEL'.
‘ADPermnum' is in ‘tblRCAddendumEL'.

When frmRCAddendumInputMain opens, ‘PassPermnum' in the main form
contains the correct value, but none of the student information that I
would expect to see based on the value of the child field appears in
frmRCAddendumInputSub until I enter data into one of the unique table
fields located on frmRCAddendumInputSub. When I enter data, the
associated student information suddenly appears, but the data that I
entered into the field ‘goes away', and I have to enter the data
again. This only happens when frmRCAddendumInputMain opens, and there
is not a related child record in the subform.

How can I have frmRCAddendumInputMain behave in such a way that when
it opens, a matching record can be created if one does not already
exist in the subform without having to enter data in one of the unique
table fields first? Or, when I enter data into a single unique table
field in the subform, how can I avoid having the entry ‘go away' after
the student information appears?

Thank you for your help!

CSDunn
Nov 13 '05 #1
0 1188

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

Similar topics

2
by: CSDunn | last post by:
Hello, In an Access 2003 ADP Subform, I am trying to set the BackGround color of three textbox fields (LSScore, RScore, WScore) in the current record of the subform to zero (black) if the value of...
2
by: Bob | last post by:
I have a form, and a subform based on a query. I want to delete specific records from my table based on certain conditions. I mean, when the user adds a new record to the subform, the form saves...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
2
by: Paul T. RONG | last post by:
Hello there, I have a main form frmOrder and inside a subform sbfrmOrderDetail. When I add records from main form to subform, it is alright when the records don't exceed 40 rows (the subform's...
5
by: DS | last post by:
I have a form with 2 Subforms...The first subform is linked to the main form. The second Subform is liked to the first subform. Whenever I add a record to the first subform that works fine. When...
1
by: Terry | last post by:
Hello, Has anyone experienced the following problem following an Upsize from Access 97 to SQL 2000 using the MS Upsize Wizard? Or can anyone see what the problem might be. Before Upsize...
1
by: Nick via AccessMonster.com | last post by:
Hello, I'm using a form that has a subform. The subform is linked to a hidden datasheet form, and the subform displays records from the form. The problem is, the subform will only show X...
7
by: Ron | last post by:
Hi All, Using Access2000, winXP. Table 1 = tblClients displayed on frmClients via qryClients. 2nd table = tblInvoices shown on frmInvoices via qryInvoices. 2nd table = tblDetails shown on...
1
by: Macbane | last post by:
Hi There, I have a main form that with a subform which is based on a parameter query. I have 2 controls on the main form & which are used as parameters in the query. It all works fine and...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.