473,396 Members | 2,037 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.

Suppress 'Save changes to layout of query...'?

DFS
I'm using a query as the SourceObject for a subform. When I change any of
the column widths and try to close the form I'm prompted to save changes to
the layout.

Anyone know how to suppress this prompt?

I tried SetWarnings False. Didn't work.

I tried saving the query (DoCmd.Save acQuery, ... ) but Access reports that
it's not open.

I tried DoCmd.RunCommand (acCmdSave). Didn't work.

I tried DoCmd.RunCommand (acCmdSaveLayout). Didn't work (says 'SaveLayout
is not available now')
Any ideas?

Thanks

Nov 13 '05 #1
1 6048
DFS
Never mind. Figured it out.

I had to SetWarnings False when opening the form, then SetWarnings True when
closing it.

(and what's actually safer is to SetWarnings when activating/deactivating
the particular form - from which no data can be deleted - in case someone
wants to use other parts of the system from which they can delete data).

DFS wrote:
I'm using a query as the SourceObject for a subform. When I change
any of the column widths and try to close the form I'm prompted to
save changes to the layout.

Anyone know how to suppress this prompt?

I tried SetWarnings False. Didn't work.

I tried saving the query (DoCmd.Save acQuery, ... ) but Access
reports that it's not open.

I tried DoCmd.RunCommand (acCmdSave). Didn't work.

I tried DoCmd.RunCommand (acCmdSaveLayout). Didn't work (says
'SaveLayout is not available now')
Any ideas?

Thanks

Nov 13 '05 #2

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

Similar topics

2
by: deko | last post by:
I create an XmlDataDocument Dataset when the main form of my WinForms app opens. The user will make changes to the Dataset, and then those changes should be saved to the XML file when the code...
4
by: keithb | last post by:
How can an application change settings in the web.config file? I need to allow users to configure SMTP email settings with functionality similar to that provided developers by the ASP.NET Web Site...
0
by: Patty05 | last post by:
I have a datagrid on a form that update properly when form loads. When the program runs and I type in/add a new row in the datagrid, it does not save the changes. Any help would be greatly...
2
by: =?Utf-8?B?RGlvZ28gQWx2ZXMgLSBTb2Z0d2FyZSBEZXZlbG9w | last post by:
Greetings to you all I have a listbox with some data loaded from the database... When I select each record, it will fill a form that I have in the same window... What I wanted is that when...
1
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Does anyone know how I can save the layout on a page that uses webparts? What I have is a web page that the user can personalize after logging in. Once they personalize it I want to retain the...
2
by: vibee | last post by:
fairly simple question but dont know how to do it...how do i prompt the user to ensure that the user wants to save changes made to an entry. thanks
11
by: gyap88 | last post by:
Hello i m using vb 2005 express to do my project. I m suppose to create a datagrid to allow user to make changes to the database. The program display the database in a datagrid where users can juz...
1
by: Serendip | last post by:
Hi, New to 2007(SP1), but have used Access extensively since 2.0. When I invoke the query builder to make changes to a form or reports underlying query, I just can't get it to save the changes I...
5
by: =?ISO-8859-1?Q?Gear=F3id?= | last post by:
Hey, This may sound odd, but is there anyway to catch the current or just run query from inside a trigger? Kinda like how profiler displays the query just as you've run it, along with all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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:
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.