473,320 Members | 2,161 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,320 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 1269
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.