UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Linking main form to subform    
 
   
pablotx
post Sep 4 2008, 11:03 AM
Post #1

UtterAccess Member
Posts: 29



Folks,

Ran into a problem today that I can't figure out. Should be an easy fix, but it has been years since I designed the database in question. Everything was working fine until yesterday and I can't find the solution.

Problem: Subform isn't opening with information from the main form unless I save main form information first. Attached is a very simple example. I want the subform to have the main form's information automatically.

Thanks in advance for the help.
Attached File(s)
Attached File  db3.zip ( 16.06K ) Number of downloads: 2
 
Go to the top of the page
 
+
jmcwk
post Sep 4 2008, 11:09 AM
Post #2

UtterAccess VIP
Posts: 12,201
From: Tacoma, WA.



Not to sure what you have going on there your attachment has 1 table a Main Form/ Subform UI would require a table and a sub table (table2) holding the detail records related to table1

Main Form:

tbl1
PktableID (Primary Key Autonumber)
etc.


Sub Form

tbl2
pkDetailID (primary Key Autonumber)
fktableID (Foreign Key to tbl1)
etc.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 26th May 2013 - 02:52 AM