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

Renaming form mde file

Here is my "problem":
I have a form that is based on a lot of different querys,the result of the querys shown in the form are based one the input given on the form, this form is in two versions and I need the user to be able to change between this to versions.

I made a script that closed the form, renamed it to the same name as the second version, then renamed the second version to the same name as the first version.

This worked fine until I made the db a mde file. I then got the message cant chane name of form in a mde fil.
Ok so I am a new at this and makes a lot of beginner errors, but is there a easy way around this? The file must be a mde file.
Oct 30 '07 #1
2 1524
missinglinq
3,532 Expert 2GB
No, I don't think so! As Access has already told you, you can't make structural changes to objects from within an MDE file, and I'm pretty sure this includes object names! Sorry!

To be honest, I'm fuzzy as to exactly what you're trying to do with this switching of names! Maybe if you can explain this a little more clearly, we can help you with some other workaround.

Linq ;0)>
Oct 30 '07 #2
I will try to explain it a little better please have patience whith me my english is not that good, and I have just started to toy around whit access. :)

There are two forms doing the exact same thing with the exact same controls and fields. The differense between them are the layout.

Both forms are based on the same querys and there are some list boxes based on sql.

All together there are about 40 different querys.

By the push of a button the formes change from layout 1 to 2, and back again if you push the button. I did this by making script that did the foloving:

1. closed the layout1
2. renamed layout1 to layout_temp
3. renamed layout2 to layout1
4. renamed layout_temp to layout2
5. open layout1

Now the former layout1 is layout2 and former layout2 is layout1.

The reason for doing it this way was that the querys is getting their criteria from the layout1 form, and returns the response to layout1.

Does this help?
Oct 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Don Leverton | last post by:
Hi Folks, I have been given a CD with approx 130 .xls files (bean-counters!) that I would like to import and merge to ONE table (tblTradeshow). The XL files are *similarly*, but not...
1
by: Don Leverton | last post by:
Hi Folks, I have been given a CD with approx 130 .xls files (bean-counters!) that I would like to import and merge to ONE table (tblTradeshow). The XL files are *similarly*, but not...
3
by: Tim923 | last post by:
There seem to be 4 steps to rename the form Form1 to MyForm: Rename the CS file from Form1 to MyForm. (I think this step could be ommitted, but they might deduct points.) Click on the form...
6
by: Rob | last post by:
When renaming a form... looks like you should probably rename it in 2 places... the logical (Name) property of the form as well as the physical file name... (this could become confusing ). Is...
8
by: BillCo | last post by:
I'm updating a legacy app with table naming that makes baby jesus cry. It's a bit of a spider web though... no telling when and where the tables will be called by name. So I wrote this for renaming...
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?
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
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
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
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.