A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form design wizard won't separate fields from form and subform



 
 
Thread Tools Display Modes
  #1  
Old September 29th, 2006, 09:28 AM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Form design wizard won't separate fields from form and subform

I have two tables that have a 1-to-many relationship. When I went through the
form wizard to design my main form, I got to the step that shows the fields
from the "one" side in the main box and the fields from the "many" side in
the subform box.

I am doing the same again but this time I have inserted the fields I want
from each table into a query and filtered the records that I would like. When
I go through the form wizard again, for some reason it won't separate the
fields from the two tables into a form and subform. The wizard produces one
form and the records from the "one" table are replicating as many times as
there are records for the respective "many" table.

I hope this makes sense amd someone understands this query. What could be
wrong.

cheers

  #2  
Old September 29th, 2006, 02:40 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Form design wizard won't separate fields from form and subform

Since you have one query, the wizard is assuming this will be a single record
source. A form and it's subform have different record sets. You need a
query for each table.

"scubadiver" wrote:

I have two tables that have a 1-to-many relationship. When I went through the
form wizard to design my main form, I got to the step that shows the fields
from the "one" side in the main box and the fields from the "many" side in
the subform box.

I am doing the same again but this time I have inserted the fields I want
from each table into a query and filtered the records that I would like. When
I go through the form wizard again, for some reason it won't separate the
fields from the two tables into a form and subform. The wizard produces one
form and the records from the "one" table are replicating as many times as
there are records for the respective "many" table.

I hope this makes sense amd someone understands this query. What could be
wrong.

cheers

  #3  
Old September 29th, 2006, 03:06 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Form design wizard won't separate fields from form and subform

Guess what? that has just occurred to me. duh!

"Klatuu" wrote:

Since you have one query, the wizard is assuming this will be a single record
source.
  #4  
Old September 29th, 2006, 03:13 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Form design wizard won't separate fields from form and subform

Them wizards aint as smart as they make out to be, is they?

"scubadiver" wrote:

Guess what? that has just occurred to me. duh!

"Klatuu" wrote:

Since you have one query, the wizard is assuming this will be a single record
source.

  #5  
Old September 29th, 2006, 03:14 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Form design wizard won't separate fields from form and subform

I am halfway there.

I do have another problem. In the query I have the following restriction on
the date:

=DateAdd("ww",-3,Date()) And DateAdd("ww",-1,Date())


It works ok in the query, but in the form it is still producing a record for
every week.

  #6  
Old September 29th, 2006, 03:19 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Form design wizard won't separate fields from form and subform

Where in the form do you have it?

"scubadiver" wrote:

I am halfway there.

I do have another problem. In the query I have the following restriction on
the date:

=DateAdd("ww",-3,Date()) And DateAdd("ww",-1,Date())


It works ok in the query, but in the form it is still producing a record for
every week.

  #7  
Old September 29th, 2006, 03:28 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Form design wizard won't separate fields from form and subform

The restriction is in the query. Do I have to put it in the form instead?
Whereabouts would it go?

"Klatuu" wrote:

Where in the form do you have it?

"scubadiver" wrote:

I am halfway there.

I do have another problem. In the query I have the following restriction on
the date:

=DateAdd("ww",-3,Date()) And DateAdd("ww",-1,Date())


It works ok in the query, but in the form it is still producing a record for
every week.

  #8  
Old September 29th, 2006, 03:46 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Form design wizard won't separate fields from form and subform

it should be okay in the query. Are you saying when you run the query by
itself it works, but when you use it a a record source it does not work?

"scubadiver" wrote:

The restriction is in the query. Do I have to put it in the form instead?
Whereabouts would it go?

"Klatuu" wrote:

Where in the form do you have it?

"scubadiver" wrote:

I am halfway there.

I do have another problem. In the query I have the following restriction on
the date:

=DateAdd("ww",-3,Date()) And DateAdd("ww",-1,Date())

It works ok in the query, but in the form it is still producing a record for
every week.

  #9  
Old September 29th, 2006, 04:00 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Form design wizard won't separate fields from form and subform

that is correct. I have the records I want in the query but in the form I get
every record for every employee!

"Klatuu" wrote:

it should be okay in the query. Are you saying when you run the query by
itself it works, but when you use it a a record source it does not work?

"scubadiver" wrote:

The restriction is in the query. Do I have to put it in the form instead?
Whereabouts would it go?

"Klatuu" wrote:

Where in the form do you have it?

"scubadiver" wrote:

I am halfway there.

I do have another problem. In the query I have the following restriction on
the date:

=DateAdd("ww",-3,Date()) And DateAdd("ww",-1,Date())

It works ok in the query, but in the form it is still producing a record for
every week.

  #10  
Old September 29th, 2006, 04:03 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Form design wizard won't separate fields from form and subform

Do you have the Link fields set properly in the subform control?

"scubadiver" wrote:

that is correct. I have the records I want in the query but in the form I get
every record for every employee!

"Klatuu" wrote:

it should be okay in the query. Are you saying when you run the query by
itself it works, but when you use it a a record source it does not work?

"scubadiver" wrote:

The restriction is in the query. Do I have to put it in the form instead?
Whereabouts would it go?

"Klatuu" wrote:

Where in the form do you have it?

"scubadiver" wrote:

I am halfway there.

I do have another problem. In the query I have the following restriction on
the date:

=DateAdd("ww",-3,Date()) And DateAdd("ww",-1,Date())

It works ok in the query, but in the form it is still producing a record for
every week.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.