PC Review


Reply
Thread Tools Rate Thread

New User Query Question - really need some help!!

 
 
=?Utf-8?B?Sm9obkc=?=
Guest
Posts: n/a
 
      28th Mar 2007
I have a simple data base that tracks our packs of timber stock at a sawmill.
Each pack is it's own entry line in the database.
The first colum in the data base is called "Status". The packs can either
be, Stock, Sold or Despatched and are changed manually from stock to sold or
despatched as they reach this status.
I have a query on this database that I have entered in the criteria section
the expression [ENTER STATUS]. When prompted I can type in Stock, Sold or
Despatched and it returns the results. What I want it to do is change the
expression so if I leave this prompt blank and just hit enter then it shows
me all the entries in the database. At the moment if I leave it blank nothing
is returned.
So basically to sum up I can enter the status I want to see and it shows me
that or I leave it blank and the default is it shows me everything

Can anyone please help me write the expression I need. I have been trying
for three days with the expression builder and just can't get the result I
want.

Thanks from New Zealand
--
JohnG
 
Reply With Quote
 
 
 
 
=?Utf-8?B?T2ZlciBDb2hlbg==?=
Guest
Posts: n/a
 
      28th Mar 2007
Try something like

SELECT TableName.Status
FROM TableName
WHERE TableName.Status=[ENTER STATUS] OR [ENTER STATUS] Is Null

Use the Criteria as a field with an Or condition for been Null
--
Good Luck
BS"D


"JohnG" wrote:

> I have a simple data base that tracks our packs of timber stock at a sawmill.
> Each pack is it's own entry line in the database.
> The first colum in the data base is called "Status". The packs can either
> be, Stock, Sold or Despatched and are changed manually from stock to sold or
> despatched as they reach this status.
> I have a query on this database that I have entered in the criteria section
> the expression [ENTER STATUS]. When prompted I can type in Stock, Sold or
> Despatched and it returns the results. What I want it to do is change the
> expression so if I leave this prompt blank and just hit enter then it shows
> me all the entries in the database. At the moment if I leave it blank nothing
> is returned.
> So basically to sum up I can enter the status I want to see and it shows me
> that or I leave it blank and the default is it shows me everything
>
> Can anyone please help me write the expression I need. I have been trying
> for three days with the expression builder and just can't get the result I
> want.
>
> Thanks from New Zealand
> --
> JohnG

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obkc=?=
Guest
Posts: n/a
 
      28th Mar 2007
Thank you, Thanks you - works perfect
Really appreciate the help
JohnG
--
JohnG


"Ofer Cohen" wrote:

> Try something like
>
> SELECT TableName.Status
> FROM TableName
> WHERE TableName.Status=[ENTER STATUS] OR [ENTER STATUS] Is Null
>
> Use the Criteria as a field with an Or condition for been Null
> --
> Good Luck
> BS"D
>
>
> "JohnG" wrote:
>
> > I have a simple data base that tracks our packs of timber stock at a sawmill.
> > Each pack is it's own entry line in the database.
> > The first colum in the data base is called "Status". The packs can either
> > be, Stock, Sold or Despatched and are changed manually from stock to sold or
> > despatched as they reach this status.
> > I have a query on this database that I have entered in the criteria section
> > the expression [ENTER STATUS]. When prompted I can type in Stock, Sold or
> > Despatched and it returns the results. What I want it to do is change the
> > expression so if I leave this prompt blank and just hit enter then it shows
> > me all the entries in the database. At the moment if I leave it blank nothing
> > is returned.
> > So basically to sum up I can enter the status I want to see and it shows me
> > that or I leave it blank and the default is it shows me everything
> >
> > Can anyone please help me write the expression I need. I have been trying
> > for three days with the expression builder and just can't get the result I
> > want.
> >
> > Thanks from New Zealand
> > --
> > JohnG

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I really really need some help!!!! Emma Microsoft Frontpage 1 10th Dec 2007 10:28 AM
I really really need some help!!!! Emma Microsoft Frontpage 0 9th Dec 2007 06:18 PM
I really, really really need help =?Utf-8?B?V29ybGRv?= Windows XP Help 3 29th May 2005 02:53 PM
really slow computer really getting really annoying...really roro Windows XP General 5 30th Nov 2003 07:28 PM
really slow computer really getting really annoying...really roro Windows XP Hardware 7 30th Nov 2003 07:28 PM


Features
 

Advertising
 

Newsgroups
 


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