Its been a while since I was creating access databases and I assure you I am very frustrated because I was able to create real complex solutions.
I seem to have forgotten the most fundamental aspects of creating a database for some reason and hope someone can help me.
My tables:
tablename: tblsite
FIELDS:
tablename: tblquery
FIELDS:
In the relationships window I link site id from tblsite to site id in tblquery as one to many.
NOw I want to create a form for tblsite. I so this using simple form wizard. I do the same for tblquery.
NOw I add a button to frmtblsite to open frmtblquery and to display specific records, matching the site code field from each table in the button wizard dialog.
The end result should be click the button and you can add or edit an entry that matches the record in tblsite and then create as many queries as you want for that site.
But its not doing it. The site id in the frmtblquery is not automatically populated. What am I doing wrong??
Any help is appreciated.

I seem to have forgotten the most fundamental aspects of creating a database for some reason and hope someone can help me.
My tables:
tablename: tblsite
FIELDS:
Code:
site id - text [primary key]
contract number - number
address 1 - text
address 2 - text
address 3 - text
phone - text
tablename: tblquery
FIELDS:
Code:
query no - autonumber
site id - text
query detail - memo
date - date/time
In the relationships window I link site id from tblsite to site id in tblquery as one to many.
NOw I want to create a form for tblsite. I so this using simple form wizard. I do the same for tblquery.
NOw I add a button to frmtblsite to open frmtblquery and to display specific records, matching the site code field from each table in the button wizard dialog.
The end result should be click the button and you can add or edit an entry that matches the record in tblsite and then create as many queries as you want for that site.
But its not doing it. The site id in the frmtblquery is not automatically populated. What am I doing wrong??
Any help is appreciated.