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

Default View

I have a simple little purchase form, on it is a button that takes the
user to a suppliers form .

The purchase form has a default view set to single form, and the
supplier form has a default value set to datasheet.

When I click on the button that goes to the supplier form from the
purchase form, the form changes into a single form view and not the
datasheet view set for it.

How can I stop this from happening so when I click the button in the
purchase form that goes to the supplier form the views stay the same
int hat there settings I set do not change.

Mar 22 '07 #1
2 3486
The "button that goes to" a form does not "go to the form". It is the Click
event code for that button that opens a Form -- the code generated by the
Command Button wizard will include a DoCmd.OpenForm statement. One of the
arguments of that statement determines the mode in which the Form will be
opened, and that argument _overrides_ what you specified for the Form
itself.

On the properties sheet for the Button, use the Events to open the code for
the Click event, place your cursor on the OpenForm statement, and press F1
for Help to determine the setting to open the Form in the mode you prefer.

Larry Linson
Microsoft Access MVP

"Dave" <da********@hotmail.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
>I have a simple little purchase form, on it is a button that takes the
user to a suppliers form .

The purchase form has a default view set to single form, and the
supplier form has a default value set to datasheet.

When I click on the button that goes to the supplier form from the
purchase form, the form changes into a single form view and not the
datasheet view set for it.

How can I stop this from happening so when I click the button in the
purchase form that goes to the supplier form the views stay the same
int hat there settings I set do not change.

Mar 22 '07 #2
Thank you very much for your time. It works great now.

On 22 Mar, 19:07, "Larry Linson" <boun...@localhost.notwrote:
The "button that goes to" a form does not "go to the form". It is the Click
event code for that button that opens a Form -- the code generated by the
Command Button wizard will include a DoCmd.OpenForm statement. One of the
arguments of that statement determines the mode in which the Form will be
opened, and that argument _overrides_ what you specified for the Form
itself.

On the properties sheet for the Button, use the Events to open the code for
the Click event, place your cursor on the OpenForm statement, and press F1
for Help to determine the setting to open the Form in the mode you prefer.

Larry Linson
Microsoft Access MVP

"Dave" <david_l...@hotmail.comwrote in message

news:11**********************@l77g2000hsb.googlegr oups.com...
I have a simple little purchase form, on it is a button that takes the
user to a suppliers form .
The purchase form has a default view set to single form, and the
supplier form has a default value set to datasheet.
When I click on the button that goes to the supplier form from the
purchase form, the form changes into a single form view and not the
datasheet view set for it.
How can I stop this from happening so when I click the button in the
purchase form that goes to the supplier form the views stay the same
int hat there settings I set do not change.

Mar 22 '07 #3

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

Similar topics

1
by: Marlin | last post by:
I am inquiring for a customer of mine who is using XMetal 3.0 as an XML editor. I am trying to add default content to an element so that this content is inserted when the element is inserted. ...
3
by: Jan Vente | last post by:
Dear listmembers, Is it possible to change default values in the table design view. for example: De default value for the fieldsize of a textfield is 50. Could I change that value by default. I...
3
by: swengtoo | last post by:
In his book "More Effective C++", Scott Meyer suggests in "Item 4" to "Avoid gratuitous default constructors". To summarize his claims against default constructors for "the right classes" he...
8
by: Alan J. Flavell | last post by:
What I was trying to do: to offer a default stylesheet, plus another small stylesheet which can be applied additionally to the default one. Preferably, the optional stylesheet should be initially...
1
by: mark2802 | last post by:
Im using the CommonDialog activeX control to select multiple file names. However I would like to be able to control using code the resulting view of the files as you can do in realtime using the view...
4
by: rn5a | last post by:
I am binding a DropDownList with records existing in a database table. I want to add an extra item *SELECT COMPANY* at index 0 so that by default, it gets selected. This is how I tried it but the...
74
by: Zytan | last post by:
I have a struct constructor to initialize all of my private (or public readonly) fields. There still exists the default constructor that sets them all to zero. Is there a way to remove the...
4
by: MangroveRoot | last post by:
A few years ago, I worked on a project in which I designed some tables, queries, forms, and reports. I'm reasonably certain that when I was designing the forms for that project, I set the...
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.