A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form Controls



 
 
Thread Tools Display Modes
  #1  
Old January 8th, 2010, 07:11 PM posted to microsoft.public.access.forms
denise
external usenet poster
 
Posts: 388
Default Form Controls

I have a form that I use as a switchboard to print off forms.

How do I select a company name, then after I select the name have it print a
report or form? Can't figure out how it all works together.

Select Company from a combo box

After select, what do you use to get the report to open for that Company?

I'm confused.


--
Denise B.
  #2  
Old January 8th, 2010, 08:57 PM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Form Controls

Here's an example

Dim strWhere As String

strWhere = "IssueID = " & Me.[NameOfCombo]ID
'Debug.Print strWhere

DoCmd.OpenReport "NameOfReport", acPreview, , strWhere



Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"Denise" wrote in message
...
I have a form that I use as a switchboard to print off forms.

How do I select a company name, then after I select the name have it print
a
report or form? Can't figure out how it all works together.

Select Company from a combo box

After select, what do you use to get the report to open for that Company?

I'm confused.


--
Denise B.



  #3  
Old January 8th, 2010, 09:21 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Form Controls

Start by looking at the Where condition for the openreport command.
Normally, you set the filter for the report in the Where condition then use
the openreport to view the data. If you will search on here, you should find
many examples. Search for filter report.
--
Milton Purdy
ACCESS
State of Arkansas


"Denise" wrote:

I have a form that I use as a switchboard to print off forms.

How do I select a company name, then after I select the name have it print a
report or form? Can't figure out how it all works together.

Select Company from a combo box

After select, what do you use to get the report to open for that Company?

I'm confused.


--
Denise B.

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.