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

Load Form?

The help file in Access 2000 has entries for Load and Show, suggesting a
usage similar to that in VB6.0.
But code like this fails:
Dim Frm as object
Set Frm=CurrentProject.AllForms(0)
Load Frm

with an error that the object can't be loaded or unloaded.

Anyone have any experience with this?
Dec 7 '05 #1
3 12113
Br
MacDermott wrote:
The help file in Access 2000 has entries for Load and Show,
suggesting a usage similar to that in VB6.0.
But code like this fails:
Dim Frm as object
Set Frm=CurrentProject.AllForms(0)
Load Frm

with an error that the object can't be loaded or unloaded.

Anyone have any experience with this?

Load is a Visual Basic command, not Access.

This works...

Dim Frm As Object
Set Frm = CurrentProject.AllForms(0)
DoCmd.OpenForm Frm.Name

--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Dec 7 '05 #2
(I never can understand why people post simplistic answers in response
to someone who is experienced and knowlegeable and is discussing
his/her adventures with something new or not so well known.)

Load is also a VBA method. How to make it work? What we want, I think
or guess, is not a form object but a text manifestation of the form,
[similar to a .frm file in VB], which we can get with SaveAsText. We
can then copy the text into a Module, or LoadFromText it into a Module
(it's not going to be text as a form) and try Loading the Form from
that. It tries, but finds errors in the code/script/text. I'm assuming
if we could find what it wants in that text, we could modify our text
to comply and it would work.

Next question would be why? Answer: because it's there.

Dec 7 '05 #3
Br
Lyle Fairfield wrote:
(I never can understand why people post simplistic answers in response
to someone who is experienced and knowlegeable and is discussing
his/her adventures with something new or not so well known.)


Yeah, good on ya Lyle.

<>
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Dec 7 '05 #4

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

Similar topics

6
by: Matthew Wells | last post by:
I am trying to load a form (load Me) without the form becoming visible. If I try me.hide or me.visible = false, they load the form and the form blinks before becoming invisible. Is there a way to...
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
0
by: Frank 'Olorin' Rizzi | last post by:
Hello everyone. This is quite convoluted, but I'll try to make it simple. I have a couple of bottom-line questions (I guess): 1~ what happens between the Page_Load routine in the code behind...
6
by: Tom | last post by:
Is there ANY easy way to close a MDI Child form in the middle of it's load? For instance, during the Load event I find a need to close the form (for whatever reason - maybe the user isn't ready for...
3
by: Dennis | last post by:
I have the following code for showing a form: dim frm as new myForm frm.ShowDialog (The Form Load Event is fired then I hide the form using Me.Hide when the X in the UR corner is clicked). ...
2
by: **Developer** | last post by:
I have a Form (FV&C) containing a userconrtrol (CF&E) I do a ShowDialog for the form and the form's Load calls a method of the UserControl. The first time I do this the usercontrol appears on...
6
by: tony | last post by:
Hello! When exactly is it important or advisable to use this form load event handler compare to using the C-tor. For example here I create an event handler called dataBoundGridForm that is...
2
by: Franky | last post by:
Threre is a Form containing a usercontrol In the form's Load event it references a usercontrol property, say, zz The first showdialog(formx) causes 1 usercontrol_load event 2 form_load event...
10
by: sara | last post by:
Hi - I have been struggling with solution ideas for this now for almost 2 weeks, and have not been able to figure this out. I have a user who creates a Purchase Order (tblPOData). In some...
9
by: RvGrah | last post by:
I'm completely new to using background threading, though I have downloaded and run through several samples and understood how they worked. My question is: I have an app whose primary form...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.