Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in General only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
General
How do I open a form without showing it?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
chingchanglang
New Member
Join Date:
Jun 2006
Posts:
6
#1
How do I open a form without showing it?
Jun 5 '06, 04:21 PM
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!
chingchanglang
New Member
Join Date:
Jun 2006
Posts:
6
#2
Jun 6 '06, 08:42 PM
Got it...this seems to work for anybody that needs it:
If Not SysCmd(acSysCmd GetObjectState, acForm, "Form Name") Then
DoCmd.OpenForm ("Form Name")
End If
Comment
Post
Cancel
chingchanglang
New Member
Join Date:
Jun 2006
Posts:
6
#3
Jun 7 '06, 07:20 PM
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(acSysCmd GetObjectState, acForm, "Edit Topic Information") Then
DoCmd.OpenForm "Edit Topic Information", acNormal, , ("[Topic_Number] = " & Me.Topic_Number .Value & " AND [Topic_Descripti on] = " & Me.Topic_Descri ption.Value)
End If
Comment
Post
Cancel
wlc04
New Member
Join Date:
May 2006
Posts:
70
#4
Jun 12 '06, 01:36 AM
Do you have another form that you are calling it from?
docmd.openform "Edit Topic Information"
mainform.setfoc us
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.
Comment
Post
Cancel
chingchanglang
New Member
Join Date:
Jun 2006
Posts:
6
#5
Jun 14 '06, 05:36 PM
Thanks Wendy, but I got it. Turns out I didn't need to pass both variables, just one. So the first post worked.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment