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  

Interesting form design problem: help!



 
 
Thread Tools Display Modes
  #1  
Old September 28th, 2006, 10:55 AM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Interesting form design problem: help!

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname" and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I would
expect, I am not getting the step in the wizard which shows the fields from
"employee" in the main form and the fields from "department" in the subform.

Not only do does the wizard go straight to the step where I name the form
but when I create the form, each name appears as many times as there are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want the
three most recent records for each employee (using the date as identifier).

What could be wrong?

Cheers in advance


  #2  
Old September 28th, 2006, 11:49 AM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Interesting form design problem: help!

I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works fine but
I thought it might be easier if I use a query instead then I can filter the
records more easily than going through properties in the form design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname" and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I would
expect, I am not getting the step in the wizard which shows the fields from
"employee" in the main form and the fields from "department" in the subform.

Not only do does the wizard go straight to the step where I name the form
but when I create the form, each name appears as many times as there are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want the
three most recent records for each employee (using the date as identifier).

What could be wrong?

Cheers in advance


  #3  
Old September 28th, 2006, 01:37 PM posted to microsoft.public.access.forms
BruceM
external usenet poster
 
Posts: 356
Default Interesting form design problem: help!

I was curious, so I did some checking. I'm afraid I can't provide detailed
guidance, but I can tell you that if you go to Google groups and enter:
"microsoft public access" top per group
just as it appears here, quotes and all, you will see a number of relevant
responses. Perhaps you can refine the search string, but that's the general
idea.

My investigations also led me to this, from a Duane Hookom post last year:

[A] (non-sql) method is to make sure your report is grouped. Then add a
text box to the detail section:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No

Then add code to the On Format event of the detail section:
Cancel = Me.txtCount3

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works fine
but
I thought it might be easier if I use a query instead then I can filter
the
records more easily than going through properties in the form design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname" and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I would
expect, I am not getting the step in the wizard which shows the fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name the form
but when I create the form, each name appears as many times as there are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance




  #4  
Old September 28th, 2006, 01:38 PM posted to microsoft.public.access.forms
BruceM
external usenet poster
 
Posts: 356
Default Interesting form design problem: help!

I should mention that the non-sql method from my previous post will work
only with reports.

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works fine
but
I thought it might be easier if I use a query instead then I can filter
the
records more easily than going through properties in the form design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname" and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I would
expect, I am not getting the step in the wizard which shows the fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name the form
but when I create the form, each name appears as many times as there are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance




  #5  
Old September 28th, 2006, 02:03 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Interesting form design problem: help!

You have totally lost me but will check out google. thanks

"BruceM" wrote:

I was curious, so I did some checking. I'm afraid I can't provide detailed
guidance, but I can tell you that if you go to Google groups and enter:
"microsoft public access" top per group
just as it appears here, quotes and all, you will see a number of relevant
responses. Perhaps you can refine the search string, but that's the general
idea.

My investigations also led me to this, from a Duane Hookom post last year:

[A] (non-sql) method is to make sure your report is grouped. Then add a
text box to the detail section:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No

Then add code to the On Format event of the detail section:
Cancel = Me.txtCount3

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works fine
but
I thought it might be easier if I use a query instead then I can filter
the
records more easily than going through properties in the form design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname" and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I would
expect, I am not getting the step in the wizard which shows the fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name the form
but when I create the form, each name appears as many times as there are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance





  #6  
Old September 28th, 2006, 02:20 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Interesting form design problem: help!

I didn't realise these messages go into Google. I have just found my message
:-)

"BruceM" wrote:

I was curious, so I did some checking. I'm afraid I can't provide detailed
guidance, but I can tell you that if you go to Google groups and enter:
"microsoft public access" top per group
just as it appears here, quotes and all, you will see a number of relevant
responses. Perhaps you can refine the search string, but that's the general
idea.

My investigations also led me to this, from a Duane Hookom post last year:

[A] (non-sql) method is to make sure your report is grouped. Then add a
text box to the detail section:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No

Then add code to the On Format event of the detail section:
Cancel = Me.txtCount3

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works fine
but
I thought it might be easier if I use a query instead then I can filter
the
records more easily than going through properties in the form design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname" and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I would
expect, I am not getting the step in the wizard which shows the fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name the form
but when I create the form, each name appears as many times as there are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance





  #7  
Old September 28th, 2006, 03:28 PM posted to microsoft.public.access.forms
BruceM
external usenet poster
 
Posts: 356
Default Interesting form design problem: help!

On what point are you lost? If it is report sorting and grouping, you are
missing out on one of the strongest features of reports. With the report
open in design view, click View Sorting and Grouping (or click the toolbar
icon). To help get you started with that, check out the Help topic "Group
records in a report".

"scubadiver" wrote in message
...
You have totally lost me but will check out google. thanks

"BruceM" wrote:

I was curious, so I did some checking. I'm afraid I can't provide
detailed
guidance, but I can tell you that if you go to Google groups and enter:
"microsoft public access" top per group
just as it appears here, quotes and all, you will see a number of
relevant
responses. Perhaps you can refine the search string, but that's the
general
idea.

My investigations also led me to this, from a Duane Hookom post last
year:

[A] (non-sql) method is to make sure your report is grouped. Then add a
text box to the detail section:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No

Then add code to the On Format event of the detail section:
Cancel = Me.txtCount3

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works
fine
but
I thought it might be easier if I use a query instead then I can filter
the
records more easily than going through properties in the form design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname"
and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I
would
expect, I am not getting the step in the wizard which shows the fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name the
form
but when I create the form, each name appears as many times as there
are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want
the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance







  #8  
Old September 28th, 2006, 05:43 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Interesting form design problem: help!

I have written my message in the "Forms" section, not the "reports" section.
I am trying to design a form using a query based on two tables that has a
1-to-many relationship.

Please re-read my original message. thanks

"BruceM" wrote:

On what point are you lost? If it is report sorting and grouping, you are
missing out on one of the strongest features of reports. With the report
open in design view, click View Sorting and Grouping (or click the toolbar
icon). To help get you started with that, check out the Help topic "Group
records in a report".

"scubadiver" wrote in message
...
You have totally lost me but will check out google. thanks

"BruceM" wrote:

I was curious, so I did some checking. I'm afraid I can't provide
detailed
guidance, but I can tell you that if you go to Google groups and enter:
"microsoft public access" top per group
just as it appears here, quotes and all, you will see a number of
relevant
responses. Perhaps you can refine the search string, but that's the
general
idea.

My investigations also led me to this, from a Duane Hookom post last
year:

[A] (non-sql) method is to make sure your report is grouped. Then add a
text box to the detail section:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No

Then add code to the On Format event of the detail section:
Cancel = Me.txtCount3

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works
fine
but
I thought it might be easier if I use a query instead then I can filter
the
records more easily than going through properties in the form design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a 1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname"
and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I
would
expect, I am not getting the step in the wizard which shows the fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name the
form
but when I create the form, each name appears as many times as there
are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I want
the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance








  #9  
Old September 28th, 2006, 05:56 PM posted to microsoft.public.access.forms
BruceM
external usenet poster
 
Posts: 356
Default Interesting form design problem: help!

I am aware of the forum in which you posted. I didn't see how I could have
totally lost you by suggesting the search string for a Google groups search,
so I figured you must be referring to the other part of what I said. Good
luck with your project.

"scubadiver" wrote in message
...
I have written my message in the "Forms" section, not the "reports"
section.
I am trying to design a form using a query based on two tables that has a
1-to-many relationship.

Please re-read my original message. thanks

"BruceM" wrote:

On what point are you lost? If it is report sorting and grouping, you
are
missing out on one of the strongest features of reports. With the report
open in design view, click View Sorting and Grouping (or click the
toolbar
icon). To help get you started with that, check out the Help topic
"Group
records in a report".

"scubadiver" wrote in message
...
You have totally lost me but will check out google. thanks

"BruceM" wrote:

I was curious, so I did some checking. I'm afraid I can't provide
detailed
guidance, but I can tell you that if you go to Google groups and
enter:
"microsoft public access" top per group
just as it appears here, quotes and all, you will see a number of
relevant
responses. Perhaps you can refine the search string, but that's the
general
idea.

My investigations also led me to this, from a Duane Hookom post last
year:

[A] (non-sql) method is to make sure your report is grouped. Then add
a
text box to the detail section:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No

Then add code to the On Format event of the detail section:
Cancel = Me.txtCount3

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works
fine
but
I thought it might be easier if I use a query instead then I can
filter
the
records more easily than going through properties in the form
design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a
1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname"
and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I
would
expect, I am not getting the step in the wizard which shows the
fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name
the
form
but when I create the form, each name appears as many times as
there
are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I
want
the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance










  #10  
Old September 29th, 2006, 09:18 AM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Interesting form design problem: help!

It seems you have misunderstood the problem I have trying to design a form.

"BruceM" wrote:

I am aware of the forum in which you posted. I didn't see how I could have
totally lost you by suggesting the search string for a Google groups search,
so I figured you must be referring to the other part of what I said. Good
luck with your project.

"scubadiver" wrote in message
...
I have written my message in the "Forms" section, not the "reports"
section.
I am trying to design a form using a query based on two tables that has a
1-to-many relationship.

Please re-read my original message. thanks

"BruceM" wrote:

On what point are you lost? If it is report sorting and grouping, you
are
missing out on one of the strongest features of reports. With the report
open in design view, click View Sorting and Grouping (or click the
toolbar
icon). To help get you started with that, check out the Help topic
"Group
records in a report".

"scubadiver" wrote in message
...
You have totally lost me but will check out google. thanks

"BruceM" wrote:

I was curious, so I did some checking. I'm afraid I can't provide
detailed
guidance, but I can tell you that if you go to Google groups and
enter:
"microsoft public access" top per group
just as it appears here, quotes and all, you will see a number of
relevant
responses. Perhaps you can refine the search string, but that's the
general
idea.

My investigations also led me to this, from a Duane Hookom post last
year:

[A] (non-sql) method is to make sure your report is grouped. Then add
a
text box to the detail section:
Name: txtCount
Control Source: =1
Running Sum: Over Group
Visible: No

Then add code to the On Format event of the detail section:
Cancel = Me.txtCount3

"scubadiver" wrote in message
...
I thought it was possible to base a form on a query.

If I use the same fields from the original tables, the wizard works
fine
but
I thought it might be easier if I use a query instead then I can
filter
the
records more easily than going through properties in the form
design.

"scubadiver" wrote:

I have two tables, "Employee" and "department", which has a
1-to-many
relationship.

From "employee" I have the fields "employeeID", "Fname" and "Sname"
and,
from "department", I have the fields "WeekID" and "rate".

When I go through the wizard I choose these fields. Unlike what I
would
expect, I am not getting the step in the wizard which shows the
fields
from
"employee" in the main form and the fields from "department" in the
subform.

Not only do does the wizard go straight to the step where I name
the
form
but when I create the form, each name appears as many times as
there
are
records. This hasn't happened before.

Just to note, in the query I have a criteria which states that I
want
the
three most recent records for each employee (using the date as
identifier).

What could be wrong?

Cheers in advance











 




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 07:34 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.