473,396 Members | 1,712 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.

How do I open a form without showing it?

HElp! I need to open a form without actually opening it. I'm thinking more of "Loading" it so I can use its recordset. But I do NOT want to see it. i have no clue....
Thanks!
Jun 5 '06 #1
4 1271
Got it...this seems to work for anybody that needs it:

If Not SysCmd(acSysCmdGetObjectState, acForm, "Form Name") Then
DoCmd.OpenForm ("Form Name")
End If
Jun 6 '06 #2
What is wrong with this line of code? Now I'm getting a syntax error? I'm trying to pass in 2 arguments when I open the form. Anyone?

If Not SysCmd(acSysCmdGetObjectState, acForm, "Edit Topic Information") Then

DoCmd.OpenForm "Edit Topic Information", acNormal, , ("[Topic_Number] = " & Me.Topic_Number.Value & " AND [Topic_Description] = " & Me.Topic_Description.Value)

End If
Jun 7 '06 #3
wlc04
70
Do you have another form that you are calling it from?

docmd.openform "Edit Topic Information"
mainform.setfocus
Forms![Edit Topic Information].Form.Visible = False

Another option is make the form you don't want to see a subform of your main form and just set it's visible property to false.
Jun 12 '06 #4
Thanks Wendy, but I got it. Turns out I didn't need to pass both variables, just one. So the first post worked.
Jun 14 '06 #5

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

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...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
5
by: aaaa | last post by:
I there, I have the folowing problem: In Form1 i have a button that open a new form (Form2). If a clik several times in that button, i open several form's of Form2. I don't want this!!! if a...
4
by: guy | last post by:
i am trying to create a custom Combobox from scratch. this requires that i create the list that the combobox opens. i've used the ListBox control to do this. my problem is that i don't know how...
2
by: John | last post by:
Hi I am opening a dialog using; frmdialog = New frmdialognew frmdialog.ShowDialog() Is there a way to see if this dialog is already open to avoid opening multiple instances of it?
3
by: Cagey | last post by:
What I'm trying for: If this selection or if click on selection (highlighted line choice/ which ever selection change) w/in query's combo dropdown list box (on Switchboard), then Open in...
2
by: Melisa | last post by:
Hi, How can i create bitmap of a window form with all its child controls without showing this form? 1. I am trying to create bitmap image of a window form. 2. I am creating a new instance of...
5
by: BD | last post by:
I am coding with C# in Visual Studio 2005 for a database application residing on remote MS SQL Server 2005. What I want to do is open the same form but from 2 different places and only one...
5
reginaldmerritt
by: reginaldmerritt | last post by:
Hello I'm creating a database application to manage our training centre. This includes registering candidates on courses\programmes. I have a table (‘registrations’) that holds this information...
2
by: rlntemp-gng | last post by:
I have a system that uses two .mdb files that are open at the same time, App1.mdb and App2.mdb. At the time that App2 is launched by App1, App1 remains open with a form (and table) already loaded...
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: 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: 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
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
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...

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.