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  

How to make the existing form use different query



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 09:51 PM
zaskodnik
external usenet poster
 
Posts: n/a
Default How to make the existing form use different query


Hi,

I have great form that works on query called "all orders" (= this query
shows what is in table "orders"). I have another query (that had the
same columns) called "new orders" (= this query shows only unshipped
orders from table "orders").

The form is used for inputing data to "orders" table, and also for
searching for data. How can I create a copy of the same form that will
show only "new orders" query data?

Thank you!

Petra


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2  
Old June 8th, 2004, 07:33 AM
John Vinson
external usenet poster
 
Posts: n/a
Default How to make the existing form use different query

On Mon, 7 Jun 2004 15:51:34 -0500, zaskodnik
wrote:

The form is used for inputing data to "orders" table, and also for
searching for data. How can I create a copy of the same form that will
show only "new orders" query data?


It's not really necessary to do so; you can instead use the Filter
property of the form to filter the recordsource to display only new
orders, if you wish. If you want a separate form, simply select the
form on the Forms window (without opening it), and Ctrl-C to copy,
Ctrl-V to paste. Rename the form and change its Recordsource property
to the new orders query.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
  #3  
Old June 9th, 2004, 09:55 PM
zaskodnik
external usenet poster
 
Posts: n/a
Default How to make the existing form use different query


Thank you! I will do it.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #4  
Old June 17th, 2004, 01:44 AM
zaskodnik
external usenet poster
 
Posts: n/a
Default How to make the existing form use different query


I tried to use "filter by selection" and "filter by form" and if was
giving me bad results.

How can I filter my data when the criterium for filtering is in
subform? (it is checkbox)
If the "shipped" checkbox is unchecked... I want the line of the PO to
be shown. (as well as info about customer... this is in the main
form...not subform)

So, when the PO is fully shipped (=all lines of PO have checkbox
checked)and it will not show anything in subform, not even in form
(PO#, customer name).... it will not be viewable.

If PO is partially shipped, it will show everything except shipped
lines.

Any suggestions?

FYI:
The table "orders" has customer name, PO#, date (this is used for
form)
The table "orderDetails" have productName, QTY, ExtPrice, Shipped
checkbox... etc. (this is used in subform)

"Orders" have one to many relationship with "orderDetails"

Thanks!


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

 




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 08:57 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.