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

linking forms to a subform

I have an access 2003 app, it has a main form, and a linked subform, the main and subforms are linked on one field, what I am trying to do is, when the user selects an item in the subform, and then opens another data form, how do I relate the new form to the subform?? the subform and the other forms i am trying to link on a separate field.

Thank you
May 3 '07 #1
5 1953
NeoPa
32,556 Expert Mod 16PB
I have an access 2003 app, it has a main form, and a linked subform, the main and subforms are linked on one field, what I am trying to do is, when the user selects an item in the subform, and then opens another data form, how do I relate the new form to the subform?? the subform and the other forms i am trying to link on a separate field.

Thank you
This is NOT an article.
I'm moving this to the main Access questions forum.
May 3 '07 #2
This is NOT an article.
I'm moving this to the main Access questions forum.
Appologies for the 'newbie' error thanks
May 4 '07 #3
NeoPa
32,556 Expert Mod 16PB
No problem - we all make mistakes.

You may want to reread your question though. I had a quick look and it didn't make much sense to me I'm afraid :(
May 4 '07 #4
No problem - we all make mistakes.

You may want to reread your question though. I had a quick look and it didn't make much sense to me I'm afraid :(
Its ok, its been sorted now thanks anyway, sorry I confused you!!
I used this

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_BeforeInsert(Cancel As Integer)
  2.   Me.[Inspection ID] = Forms![Booking Form]![ID]
  3. End Sub
and its working ok tks
May 7 '07 #5
NeoPa
32,556 Expert Mod 16PB
I'm pleased to hear it.
Thanks for posting your solution too - that always helps :)
May 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
2
by: Mike Boozer | last post by:
I have two subforms on my main form. I want the records on subform B to correspond with the records on subform A which they do. However, I want the records on subform A to let me know if there is a...
1
by: MJ | last post by:
I have a database where, when I put 3 forms on one form they link fine and auto fill in information as they should; however, when I try to use the Tab Control form I am having trouble having to...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform relates to the main form using an identity key (this works). The second subform relates to both the main and first subform. But I want to...
7
by: ApexData | last post by:
I am using the following code in my TabControl to manage subform loads. The code assigns the subForms SourceObject. - Do I also need code to DeAssign the SourceObject when leaving the Tab, I'm...
3
by: Robert McEuen | last post by:
Using A2K3, Windows XP I'm handling a many-to-many relationship with a linking table structure as follows (irrelevant fields omitted): tblIssue PK_IssueID (autonumber, primary key) IssueName...
2
by: darnel | last post by:
I have 4 hierarchical tables and want to display it all together as a form and 3 subforms, when subform displays (and allow to add/edit) only relevant items from each superior subform. Tables are:...
3
by: BASSPU03 | last post by:
(I'm using Access 2003 on a Windows XP O/S.) I have four tables that are related in the following order: tblFiscalYear > tblBulkObligations > tblProjects > tblResources These are their...
5
by: samdev | last post by:
I have created two combo boxes in a subform.... For example 1. Combo Box State 2. Combo Box City 3. When a state from the Combo Box State is selected, the City combo box updates to reflect...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.