13fda Help opening up query into form
Sign Up |  Live StatsLive Stats    Articles 37,302| Comments 176,967| Members 19,397, Newest birinder| Online 370
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Help opening up query into form

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 100 USD (20%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Opening a form showing only some data MartinR Information Technology 2 28-Jul-2006 08:41 AM
Opening a form from within a subform using a macro john@leeburn Information Technology 2 28-Jul-2006 08:32 AM
Force pivotchart view when opening a pivotchart form tsison7 Information Technology 0 28-Jul-2006 08:26 AM
Switchboard form is opening but immediately gets minimized tsison7 Information Technology 3 28-Jul-2006 08:26 AM
Cancelling the opening of a form? Maury Markowitz Information Technology 2 28-Jul-2006 08:00 AM


Tags
help, opening, query, form
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:36 AM
mwest's Avatar mwest
Guest
 
Posts: n/a
   
   
Help opening up query into form

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I have a query called retreived selected contaminant,department,date and the
code below however when I enter the information below it gives me a blank
form instead of the information I requested.

Private Sub MultiOK_Click()
On Error GoTo b
If IsNull(Me.Combo0) Or IsNull(Me.Combo2) Then
MsgBox "Please include all criteria for the report.", vbInformation, "Some
nifty title here."
Me.Combo0.SetFocus
GoTo a
End If
Me.Visible = False
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/13406-help-opening-up-query-into-form.html
DoCmd.OpenForm "contaminant,department,date Display"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13406
DoCmd.Close acForm, Me.Name
DoCmd.SelectObject acForm, "contaminant,department,date Display"
a: Exit Sub
b: MsgBox Err.Number & " " & Err.Description
Resume a
End Sub


Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:37 AM
strive4peace's Avatar strive4peace
Guest
 
Posts: n/a
   
   
Re: Help opening up query into form

  Donate Today!  
Instead of putting the criteria in your query, try using the
WHERECLAUSE parameter of the Openform action

DoCmd.OpenForm formname[, view][, filtername][,
wherecondition][, datamode][, windowmode][, openargs]

for help on OpenForm, press the F1 key on the word
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13406
"OpenForm" in your code or in the Immediate window

you also should replace the commas with underscores in your
formname. It is a good idea to only use letters, numbers
(but never as the first character), and underscores in
tablenames, fieldnames, fornmames, etc -- and avoid using spaces

Warm Regards,
Crystal
Microsoft Access MVP 2006

*
Have an awesome day

remote programming and training
strive4peace2006 at yahoo.com

*

mwest wrote:
> I have a query called retreived selected contaminant,department,date and the
> code below however when I enter the information below it gives me a blank
> form instead of the information I requested.
>
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13406
> Private Sub MultiOK_Click()
> On Error GoTo b
> If IsNull(Me.Combo0) Or IsNull(Me.Combo2) Then
> MsgBox "Please include all criteria for the report.", vbInformation, "Some
> nifty title here."
> Me.Combo0.SetFocus
> GoTo a
> End If
> Me.Visible = False
> DoCmd.OpenForm "contaminant,department,date Display"
> DoCmd.Close acForm, Me.Name
> DoCmd.SelectObject acForm, "contaminant,department,date Display"
> a: Exit Sub
> b: MsgBox Err.Number & " " & Err.Description
> Resume a
> End Sub

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Do you believe in...
Today 10:03 AM
168 Replies, 3,513 Views
Nitnem Gutka - Gurmukhi...
Today 08:09 AM
14 Replies, 16,373 Views
Map shows world's 'most...
Today 07:16 AM
13 Replies, 165 Views
Why are There so Many...
Today 06:19 AM
49 Replies, 4,807 Views
Learn Punjabi Yourself...
Today 05:41 AM
15 Replies, 7,609 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 05:32 AM
167 Replies, 4,291 Views
The Great Imp Debate
Today 05:28 AM
32 Replies, 483 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 05:16 AM
299 Replies, 7,379 Views
Textbooks Spotted...
Today 04:53 AM
5 Replies, 73 Views
BHOOTS (Ghosts) and...
Today 04:22 AM
92 Replies, 13,728 Views
Thought of the Moment!
Today 04:01 AM
105 Replies, 4,988 Views
Panjabi
Today 02:14 AM
9 Replies, 206 Views
Fresno Sikh Who Was...
Today 01:30 AM
0 Replies, 43 Views
Guns of the Nihangs...
Today 01:24 AM
0 Replies, 47 Views
Saudi Woman Makes...
Today 01:01 AM
0 Replies, 33 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 11:08 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.33848 seconds with 32 queries
0