473,387 Members | 3,684 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,387 software developers and data experts.

If DataSheet view then maximize.. possible with code?

Hi
My users are going to toggle back and forth between DataSheet and Form
view. This eliminates the need for a pile of queries <g>

Anyway, I would like my form to be viewed at the current size (I had
removed the min max buttons). But when in Datasheet view I would like
it to maximize. If I maximize the view while in DataSheet then when
the user toggles to Form it stays maximized and looks ugly.

Is there any code along the lines of
if me.DatasheetView = true then doCmd.maximize

Just a long shot....., perhaps a Macro to run from a right click and
leave the form coded to no max min buttons, Would that work?
Ralph
Nov 12 '05 #1
1 3728
Thanks Matthew....... works like a charm

On Mon, 8 Sep 2003 19:02:52 -0700, "Matthew Reeves"
<mr*****@nospam.bytemyzer.com> wrote:
"Ralph" <un*****@yahoo.com> wrote in message
news:k9********************************@4ax.com.. .
Hi
My users are going to toggle back and forth between DataSheet and Form
view. This eliminates the need for a pile of queries <g>

Anyway, I would like my form to be viewed at the current size (I had
removed the min max buttons). But when in Datasheet view I would like
it to maximize. If I maximize the view while in DataSheet then when
the user toggles to Form it stays maximized and looks ugly.

Is there any code along the lines of
if me.DatasheetView = true then doCmd.maximize

Just a long shot....., perhaps a Macro to run from a right click and
leave the form coded to no max min buttons, Would that work?
Ralph


In the form's Class Module, enter the following code:

Private Sub Form_Current()

Select Case Forms("FormName").CurrentView
Case 1
DoCmd.Restore
Case 2
DoCmd.Maximize
End Select

End Sub


Nov 12 '05 #2

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

Similar topics

3
by: Keith Wilby | last post by:
I have a form which allows both form and datasheet views. My question is, is it possible to control the field (column) names in datasheet view? What happens at the moment is that the name is...
4
by: Terry | last post by:
I have created a Main Switchboard in Access 2000 and it has a button which opens a Form. I have set the form Properties Default View to Datasheet and this always opens in datasheet view. When I...
2
by: Georges Heinesch | last post by:
Hi: I have a tables in relationship to each other. When I open the main table (table 1), I see a "+" at the very left of every record. Clicking on the "+" expands the data of the linked table...
13
by: Aladdin | last post by:
I have an MS Access form on which I have a listbox listing tables in that database. I want to be able to click on any of those tables and view its contents on the same form using subforms or any...
4
by: danit58 | last post by:
Is it possible format the backcolor of rows, depending the value in a field of the the rekords, in datasheet mode?? Can you help me???
1
by: Yuki | last post by:
I am trying to find out if I can have a specific record that has been selected in a list box be opened in datasheet view. I can't seem to find where this can happen or what I need to use to make...
1
by: sasan3 | last post by:
when I set visible=false, then entry is not visible in form view, but still shows up in datasheet view. How do I make a field not to show based on some condition in datasheet view? Tx.
1
by: Simon | last post by:
Dear reader, In a form with the property "Default view" as DataSheet I like to hide some fields in the datasheet view. It is possible to manage this with the command Format>>Unhide...
2
by: Alan Forsyth | last post by:
That rather long subject says it. In Access97 running on XP - I want to display a Maximized size Form01, then open a Restore size Datasheet View Form02 on top of the first Form. PopUp won't give...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.