473,401 Members | 2,127 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,401 software developers and data experts.

Forcing a Form View

Hello everyone,

I'm new to access, so if this is a dumb question I apologize in
advance.

I created a query that requires a "parameter value" to be entered.
I then created a form to display the results of that query.

This worked fine and I am able to scroll throught the results of the
query in my form.

I then created a "command button" on the this form to call up the same
query as before.

The problem is that it displays the correct results, but only in
DATASHEET view.

How can I force it display the results in Form View.
(even a hammer won't work!)

Thanks,
Dave
Nov 13 '05 #1
9 3277
On Thu, 04 Aug 2005 13:08:34 GMT, David White wrote:
Hello everyone,

I'm new to access, so if this is a dumb question I apologize in
advance.

I created a query that requires a "parameter value" to be entered.
I then created a form to display the results of that query.

This worked fine and I am able to scroll throught the results of the
query in my form.

I then created a "command button" on the this form to call up the same
query as before.

The problem is that it displays the correct results, but only in
DATASHEET view.

How can I force it display the results in Form View.
(even a hammer won't work!)

Thanks,
Dave


Did you set the Default Form View property to either Continuous Form
or Single Form View?
It's on the Form's Property Sheet's Format tab.
What is the command button click event code?

The best way to do this, however, is to set the query as the form's
Record Source. Open the form and the query will prompt for the
parameter. Enter the parameter and the form will automatically display
the query result. There is no need for a separate command button.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
On Thu, 04 Aug 2005 13:08:34 GMT, David White wrote:
Hello everyone,

I'm new to access, so if this is a dumb question I apologize in
advance.

I created a query that requires a "parameter value" to be entered.
I then created a form to display the results of that query.

This worked fine and I am able to scroll throught the results of the
query in my form.

I then created a "command button" on the this form to call up the same
query as before.

The problem is that it displays the correct results, but only in
DATASHEET view.

How can I force it display the results in Form View.
(even a hammer won't work!)

Thanks,
Dave


Did you set the Default Form View property to either Continuous Form
or Single Form View?
It's on the Form's Property Sheet's Format tab.
What is the command button click event code?

The best way to do this, however, is to set the query as the form's
Record Source. Open the form and the query will prompt for the
parameter. Enter the parameter and the form will automatically display
the query result. There is no need for a separate command button.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #3
On Thu, 4 Aug 2005 06:56:37 -0700, fredg <fg******@example.invalid>
wrote:

I Like your idea about Opening the form and then receive a prompt for
the display.

The query is, however, the form's Record Source

Is the problem caused by the facr that I intially used the Form Wizard
to set up the form using the Query instead of the Underlying table?
Did you set the Default Form View property to either Continuous Form
or Single Form View?
It's on the Form's Property Sheet's Format tab.
What is the command button click event code?

The best way to do this, however, is to set the query as the form's
Record Source. Open the form and the query will prompt for the
parameter. Enter the parameter and the form will automatically display
the query result. There is no need for a separate command button.


Nov 13 '05 #4
On Thu, 4 Aug 2005 06:56:37 -0700, fredg <fg******@example.invalid>
wrote:

I Like your idea about Opening the form and then receive a prompt for
the display.

The query is, however, the form's Record Source

Is the problem caused by the facr that I intially used the Form Wizard
to set up the form using the Query instead of the Underlying table?
Did you set the Default Form View property to either Continuous Form
or Single Form View?
It's on the Form's Property Sheet's Format tab.
What is the command button click event code?

The best way to do this, however, is to set the query as the form's
Record Source. Open the form and the query will prompt for the
parameter. Enter the parameter and the form will automatically display
the query result. There is no need for a separate command button.


Nov 13 '05 #5
"David White" <dj*****@snet.net> wrote in message
news:te********************************@4ax.com...
Hello everyone,

I'm new to access, so if this is a dumb question I apologize in
advance.

I created a query that requires a "parameter value" to be entered.
I then created a form to display the results of that query.

This worked fine and I am able to scroll throught the results of the
query in my form.

I then created a "command button" on the this form to call up the same
query as before.

The problem is that it displays the correct results, but only in
DATASHEET view.

How can I force it display the results in Form View.
(even a hammer won't work!)

Thanks,
Dave

Dave,
It sounds like the problem is your command button. The "click" event is
likely set to open another query. Queries are always opened in datasheet
view. Try changing your "click" event to change the record source of the
form to the new query (instead of just opening the query).
Fred Zuckerman
Nov 13 '05 #6
"David White" <dj*****@snet.net> wrote in message
news:te********************************@4ax.com...
Hello everyone,

I'm new to access, so if this is a dumb question I apologize in
advance.

I created a query that requires a "parameter value" to be entered.
I then created a form to display the results of that query.

This worked fine and I am able to scroll throught the results of the
query in my form.

I then created a "command button" on the this form to call up the same
query as before.

The problem is that it displays the correct results, but only in
DATASHEET view.

How can I force it display the results in Form View.
(even a hammer won't work!)

Thanks,
Dave

Dave,
It sounds like the problem is your command button. The "click" event is
likely set to open another query. Queries are always opened in datasheet
view. Try changing your "click" event to change the record source of the
form to the new query (instead of just opening the query).
Fred Zuckerman
Nov 13 '05 #7
On Thu, 04 Aug 2005 14:12:48 GMT, David White wrote:
On Thu, 4 Aug 2005 06:56:37 -0700, fredg <fg******@example.invalid>
wrote:

I Like your idea about Opening the form and then receive a prompt for
the display.

The query is, however, the form's Record Source

Is the problem caused by the facr that I intially used the Form Wizard
to set up the form using the Query instead of the Underlying table?
Did you set the Default Form View property to either Continuous Form
or Single Form View?
It's on the Form's Property Sheet's Format tab.
What is the command button click event code?

The best way to do this, however, is to set the query as the form's
Record Source. Open the form and the query will prompt for the
parameter. Enter the parameter and the form will automatically display
the query result. There is no need for a separate command button.


If the command button event code is something like:
DoCmd.OpenQuery "QueryName"
that will open the query as a query (in datasheet view).

I believe you are going about this incorrectly. If the Query is the
form's record source, that should be all you need to filter and show
the appropriate records after entering the parameter when prompted.

Why don't you use the built-in Filter-by-Selection or Filter-by-Form
tool buttons to filter within the filter?

No need for a command button.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #8
On Thu, 04 Aug 2005 14:12:48 GMT, David White wrote:
On Thu, 4 Aug 2005 06:56:37 -0700, fredg <fg******@example.invalid>
wrote:

I Like your idea about Opening the form and then receive a prompt for
the display.

The query is, however, the form's Record Source

Is the problem caused by the facr that I intially used the Form Wizard
to set up the form using the Query instead of the Underlying table?
Did you set the Default Form View property to either Continuous Form
or Single Form View?
It's on the Form's Property Sheet's Format tab.
What is the command button click event code?

The best way to do this, however, is to set the query as the form's
Record Source. Open the form and the query will prompt for the
parameter. Enter the parameter and the form will automatically display
the query result. There is no need for a separate command button.


If the command button event code is something like:
DoCmd.OpenQuery "QueryName"
that will open the query as a query (in datasheet view).

I believe you are going about this incorrectly. If the Query is the
form's record source, that should be all you need to filter and show
the appropriate records after entering the parameter when prompted.

Why don't you use the built-in Filter-by-Selection or Filter-by-Form
tool buttons to filter within the filter?

No need for a command button.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #9
On Thu, 4 Aug 2005 09:16:44 -0700, fredg <fg******@example.invalid>
wrote:

Thank you both for your input.

I took your suggestion and created a filter by copying and pasting a
part of the Query in "SQL view" to the Form's Property-Filter Record.

I then created a Command button to apply the filter. Works great.

Thanks again,
Dave

Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John M | last post by:
Hello All, The code below is something I have been working on and just can't get past. I know it must be very simple but here goes. The Form Method line text is invisible on browers, but still...
4
by: John Baker | last post by:
Hi: I have a query which supports a form. Te form is used to edit, update and change records in the table the query is based on. It all works fine EXCEPT that the "New" record (blank updatable...
13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
0
by: David White | last post by:
Hello everyone, I'm new to access, so if this is a dumb question I apologize in advance. I created a query that requires a "parameter value" to be entered. I then created a form to display...
0
by: Earl Teigrob | last post by:
I have a page that reads values from an XML file to display to the user. The page also has a control panel that allows administrators to update the XML file with new values. When an administrator...
0
by: steve | last post by:
SysInternals provides a *FANTASTIC* product called DebugView. It allows you to snoop User and Kernel traces, eg. You can view Trace.WriteLine etc It also timestamps the traces. I deal a lot with...
0
by: Fabuloussites | last post by:
Greetings All, here is my situation. i have a master page that has a login user control embedded on it. within the user control there is a multiview. in the default view, the...
4
by: ATS16805 | last post by:
Hi. I wonder if it's possible to "force" a browser to "switch to SSR mode" for any given document. Specifically, I'm looking for a solution, not to a User Agent issue (i think), but a coding idea;...
3
by: Ken Fine | last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.