473,503 Members | 2,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Signalling a record in a one-to-one tables

Hi, hope someone can help with what should be an easy feature:

I have 2 tables in a one-to-one relationship. Each table has its own form.

tblAplicantCore underlies frmAppCore
tblApplicantData underlies frmAppRen

Each record in tblAplicantCore can have a maximum of 1 record in
tblApplicantRenewal - but many records, if not most, will be null.

I have a checkbox in frmAppCore need it to checked if there is a
corrresponding record in tblApplicantRenewal

I'm trying to do something like this, but, needless to say, it's not
working. And I'm almost cetain I'm barking up the wrong tree.

Can anyone help?

TIA,

Paul.
'''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''
'''''''''

Private Sub Form_Load() 'frmApplicantCore
Dim db As Database, rst As Recordset

Set db = DBEngine.Workspaces(0).Databases(0)
Set rst = db.OpenRecordset("SELECT tblRenewalData.AppRenID FROM
tblRenewalData WHERE
(tblRenewalData.AppRenID)=[Forms]![frmApplicantCore].[AppCoreID]")
Do Until rs.EOF
Loop
If rst.RecordCount > 0 Then

Me.ckRenewalReceived = -1

End If
End Sub

Nov 12 '05 #1
0 1189

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

Similar topics

3
1300
by: David | last post by:
Hi, I have a .asp page which lists a date, then a bunch of record lines for data that falls within that date, then the next date and it's bunch of data record lines. e.g. Ship Date:...
1
1384
by: Danny | last post by:
I remember this command was established in dBase with "set carry on", so when you added a new record, the last record would be copied. Is there a command that will let you duplicate the current...
1
1393
by: Danny | last post by:
I remember this command was established in dBase with "set carry on", so when you added a new record, the last record would be copied. Is there a command that will let you duplicate the current...
1
2846
by: Tom | last post by:
> > Ciao a tutto il NG. > > Access 97 > > Devo poter inserire un record vuoto in una maschera a schede continua > cioč. > > record 1 > > record 2 > > record 3 > > record 4 > > record 5 > >...
22
18764
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
0
7093
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
7291
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
7357
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
7468
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...
1
5023
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...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.