Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,790| Members 17,820, Newest waheguruhelpme| Online 197
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Answer needed ASAP

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Answer for Appache Wayne-I-M Information Technology 0 28-Jul-2006 08:41 AM
Searching for an answer poppy Spiritual Articles 12 31-Mar-2006 21:58 PM
Help - Asap ! S|kH Hard Talk 2 29-Apr-2005 10:44 AM
How would I answer this.. S|kH Sikh Sikhi Sikhism 1 10-Dec-2004 23:05 PM


Tags
answer, needed, asap
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:31 AM
ktfrubel's Avatar ktfrubel
Guest
 
Posts: n/a
   
   
Answer needed ASAP

  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 am stumped!
I have 3 fields.
Reorder_qty
Maintain_qty
Physical_Count

This is what I have written so far.

Qty_to_order:
IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].

I basically want the query to give me a total of how much to order when the
Physical count is less than or equal to the reorder level. But it needs to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12688-answer-needed-asap.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
generate the difference between the maintain qty and the physical count.

What am I doing wrong?

*








 
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:31 AM
ChrisM's Avatar ChrisM
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP


"ktfrubel" wrote in message
news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
>I am stumped!
> I have 3 fields.
> Reorder_qty
> Maintain_qty
> Physical_Count
>
> This is what I have written so far.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
>
> Qty_to_order:
> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
>
> I basically want the query to give me a total of how much to order when
> the
> Physical count is less than or equal to the reorder level. But it needs
> to
> generate the difference between the maintain qty and the physical count.
>
> What am I doing wrong?


You don't actually say what the problem is, maybe you could give a few more
details.
In the meantime, may I just correct what I assume is a typo in your code, if
it isn't then that may be your problem:

IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)

Cheers,

Chris.


Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:31 AM
ktfrubel's Avatar ktfrubel
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP

Chris,
I apologize for being so vauge.
The Qty_to_order field is a caluclated field in the query. Right now it is
written simply as Qty_to_Order: [maintain_qty]-[Physical_Count]. This gives
me what I want. However thinking of exactly what I needthis query to do, I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
discovered that I need to add a new field which is the ReOrder Level Field.
I added the field to my main table. So I thought I would write the code that
I listed below becuase I would like the Qty_to_order field to populate the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
difference between the Maintaining filed and the Physical field only if the
physical count is less than or equal to the reorder level.
Now when I run the query...I get asked a "parameter" question pertaining to
the reorder level, and none of the calculation work any more. Confused?????
Me too!


"ChrisM" wrote:

>
> "ktfrubel" wrote in message
> news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
> >I am stumped!
> > I have 3 fields.
> > Reorder_qty
> > Maintain_qty
> > Physical_Count
> >
> > This is what I have written so far.
> >
> > Qty_to_order:
> > IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
> >
> > I basically want the query to give me a total of how much to order when
> > the
> > Physical count is less than or equal to the reorder level. But it needs
> > to
> > generate the difference between the maintain qty and the physical count.
> >
> > What am I doing wrong?

>
> You don't actually say what the problem is, maybe you could give a few more
> details.
> In the meantime, may I just correct what I assume is a typo in your code, if
> it isn't then that may be your problem:
>
> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)
>
> Cheers,
>
> Chris.
>
>
>

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:31 AM
ChrisM's Avatar ChrisM
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP

Hmm,

What you had in your OP (or at least my correction to it) seems perfectly
fine to me.
Double check your spelling, and make sure the field names in the calculated
field are EXACTLY the same as the astual field names (check
underscores/spaces and everything). If its prompting you for 'reorder level'
then I'm guessing that's most likely the one that is different?
I notice in your post, you refer to 'Reorder Level' but in your original
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
post, your field is 'Reorder_qty'...?

Cheers,

Chris.

"ktfrubel" wrote in message
news:357BCF36-1E3C-4DB5-B9CC-377E29A8708E@microsoft.com...
> Chris,
> I apologize for being so vauge.
> The Qty_to_order field is a caluclated field in the query. Right now it
> is
> written simply as Qty_to_Order: [maintain_qty]-[Physical_Count]. This
> gives
> me what I want. However thinking of exactly what I needthis query to do,
> I
> discovered that I need to add a new field which is the ReOrder Level
> Field.
> I added the field to my main table. So I thought I would write the code
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> that
> I listed below becuase I would like the Qty_to_order field to populate the
> difference between the Maintaining filed and the Physical field only if
> the
> physical count is less than or equal to the reorder level.
> Now when I run the query...I get asked a "parameter" question pertaining
> to
> the reorder level, and none of the calculation work any more.
> Confused?????
> Me too!
>
>
> "ChrisM" wrote:
>
>>
>> "ktfrubel" wrote in message
>> news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
>> >I am stumped!
>> > I have 3 fields.
>> > Reorder_qty
>> > Maintain_qty
>> > Physical_Count
>> >
>> > This is what I have written so far.
>> >
>> > Qty_to_order:
>> > IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
>> >
>> > I basically want the query to give me a total of how much to order when
>> > the
>> > Physical count is less than or equal to the reorder level. But it
>> > needs
>> > to
>> > generate the difference between the maintain qty and the physical
>> > count.
>> >
>> > What am I doing wrong?

>>
>> You don't actually say what the problem is, maybe you could give a few
>> more
>> details.
>> In the meantime, may I just correct what I assume is a typo in your code,
>> if
>> it isn't then that may be your problem:
>>
>> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)
>>
>> Cheers,
>>
>> Chris.
>>
>>
>>



Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:31 AM
ktfrubel's Avatar ktfrubel
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP

I have checked and double checked... I even created a whole new query. I
just don't know.....It should work, but it isn't///

"ChrisM" wrote:

> Hmm,
>
> What you had in your OP (or at least my correction to it) seems perfectly
> fine to me.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> Double check your spelling, and make sure the field names in the calculated
> field are EXACTLY the same as the astual field names (check
> underscores/spaces and everything). If its prompting you for 'reorder level'
> then I'm guessing that's most likely the one that is different?
> I notice in your post, you refer to 'Reorder Level' but in your original
> post, your field is 'Reorder_qty'...?
>
> Cheers,
>
> Chris.
>
> "ktfrubel" wrote in message
> news:357BCF36-1E3C-4DB5-B9CC-377E29A8708E@microsoft.com...
> > Chris,
> > I apologize for being so vauge.
> > The Qty_to_order field is a caluclated field in the query. Right now it
> > is
> > written simply as Qty_to_Order: [maintain_qty]-[Physical_Count]. This
> > gives
> > me what I want. However thinking of exactly what I needthis query to do,
> > I
> > discovered that I need to add a new field which is the ReOrder Level
> > Field.
> > I added the field to my main table. So I thought I would write the code
> > that
> > I listed below becuase I would like the Qty_to_order field to populate the
> > difference between the Maintaining filed and the Physical field only if
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> > the
> > physical count is less than or equal to the reorder level.
> > Now when I run the query...I get asked a "parameter" question pertaining
> > to
> > the reorder level, and none of the calculation work any more.
> > Confused?????
> > Me too!
> >
> >
> > "ChrisM" wrote:
> >
> >>
> >> "ktfrubel" wrote in message
> >> news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
> >> >I am stumped!
> >> > I have 3 fields.
> >> > Reorder_qty
> >> > Maintain_qty
> >> > Physical_Count
> >> >
> >> > This is what I have written so far.
> >> >
> >> > Qty_to_order:
> >> > IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
> >> >
> >> > I basically want the query to give me a total of how much to order when
> >> > the
> >> > Physical count is less than or equal to the reorder level. But it
> >> > needs
> >> > to
> >> > generate the difference between the maintain qty and the physical
> >> > count.
> >> >
> >> > What am I doing wrong?
> >>
> >> You don't actually say what the problem is, maybe you could give a few
> >> more
> >> details.
> >> In the meantime, may I just correct what I assume is a typo in your code,
> >> if
> >> it isn't then that may be your problem:
> >>
> >> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)
> >>
> >> Cheers,
> >>
> >> Chris.
> >>
> >>
> >>

>
>
>

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:31 AM
ChrisM's Avatar ChrisM
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP

If you can,

In the query design screen, select the SQL view, and post the SQL from the
query here

Cheers,

Chris.

"ktfrubel" wrote in message
news:1F901AE9-21DC-49AA-8500-AF085ACF4419@microsoft.com...
>I have checked and double checked... I even created a whole new query. I
> just don't know.....It should work, but it isn't///
>
> "ChrisM" wrote:
>
>> Hmm,
>>
>> What you had in your OP (or at least my correction to it) seems perfectly
>> fine to me.
>> Double check your spelling, and make sure the field names in the
>> calculated
>> field are EXACTLY the same as the astual field names (check
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
>> underscores/spaces and everything). If its prompting you for 'reorder
>> level'
>> then I'm guessing that's most likely the one that is different?
>> I notice in your post, you refer to 'Reorder Level' but in your original
>> post, your field is 'Reorder_qty'...?
>>
>> Cheers,
>>
>> Chris.
>>
>> "ktfrubel" wrote in message
>> news:357BCF36-1E3C-4DB5-B9CC-377E29A8708E@microsoft.com...
>> > Chris,
>> > I apologize for being so vauge.
>> > The Qty_to_order field is a caluclated field in the query. Right now
>> > it
>> > is
>> > written simply as Qty_to_Order: [maintain_qty]-[Physical_Count]. This
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
>> > gives
>> > me what I want. However thinking of exactly what I needthis query to
>> > do,
>> > I
>> > discovered that I need to add a new field which is the ReOrder Level
>> > Field.
>> > I added the field to my main table. So I thought I would write the
>> > code
>> > that
>> > I listed below becuase I would like the Qty_to_order field to populate
>> > the
>> > difference between the Maintaining filed and the Physical field only if
>> > the
>> > physical count is less than or equal to the reorder level.
>> > Now when I run the query...I get asked a "parameter" question
>> > pertaining
>> > to
>> > the reorder level, and none of the calculation work any more.
>> > Confused?????
>> > Me too!
>> >
>> >
>> > "ChrisM" wrote:
>> >
>> >>
>> >> "ktfrubel" wrote in message
>> >> news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
>> >> >I am stumped!
>> >> > I have 3 fields.
>> >> > Reorder_qty
>> >> > Maintain_qty
>> >> > Physical_Count
>> >> >
>> >> > This is what I have written so far.
>> >> >
>> >> > Qty_to_order:
>> >> > IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
>> >> >
>> >> > I basically want the query to give me a total of how much to order
>> >> > when
>> >> > the
>> >> > Physical count is less than or equal to the reorder level. But it
>> >> > needs
>> >> > to
>> >> > generate the difference between the maintain qty and the physical
>> >> > count.
>> >> >
>> >> > What am I doing wrong?
>> >>
>> >> You don't actually say what the problem is, maybe you could give a few
>> >> more
>> >> details.
>> >> In the meantime, may I just correct what I assume is a typo in your
>> >> code,
>> >> if
>> >> it isn't then that may be your problem:
>> >>
>> >> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)
>> >>
>> >> Cheers,
>> >>
>> >> Chris.
>> >>
>> >>
>> >>

>>
>>
>>



Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:31 AM
ktfrubel's Avatar ktfrubel
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP

Here you go Chris

SELECT Supply_Table.*,
IIf([physical_count]<=[ReOrder_level],[qty_to_maintain]-[physical_count]) AS
Qty_to_Order
FROM Supply_Table
WHERE (((Supply_Table.Show) Like Yes))
ORDER BY Supply_Table.Product_Description;


"ChrisM" wrote:

> If you can,
>
> In the query design screen, select the SQL view, and post the SQL from the
> query here
>
> Cheers,
>
> Chris.
>
> "ktfrubel" wrote in message
> news:1F901AE9-21DC-49AA-8500-AF085ACF4419@microsoft.com...
> >I have checked and double checked... I even created a whole new query. I
> > just don't know.....It should work, but it isn't///
> >
> > "ChrisM" wrote:
> >
> >> Hmm,
> >>
> >> What you had in your OP (or at least my correction to it) seems perfectly
> >> fine to me.
> >> Double check your spelling, and make sure the field names in the
> >> calculated
> >> field are EXACTLY the same as the astual field names (check
> >> underscores/spaces and everything). If its prompting you for 'reorder
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> >> level'
> >> then I'm guessing that's most likely the one that is different?
> >> I notice in your post, you refer to 'Reorder Level' but in your original
> >> post, your field is 'Reorder_qty'...?
> >>
> >> Cheers,
> >>
> >> Chris.
> >>
> >> "ktfrubel" wrote in message
> >> news:357BCF36-1E3C-4DB5-B9CC-377E29A8708E@microsoft.com...
> >> > Chris,
> >> > I apologize for being so vauge.
> >> > The Qty_to_order field is a caluclated field in the query. Right now
> >> > it
> >> > is
> >> > written simply as Qty_to_Order: [maintain_qty]-[Physical_Count]. This
> >> > gives
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> >> > me what I want. However thinking of exactly what I needthis query to
> >> > do,
> >> > I
> >> > discovered that I need to add a new field which is the ReOrder Level
> >> > Field.
> >> > I added the field to my main table. So I thought I would write the
> >> > code
> >> > that
> >> > I listed below becuase I would like the Qty_to_order field to populate
> >> > the
> >> > difference between the Maintaining filed and the Physical field only if
> >> > the
> >> > physical count is less than or equal to the reorder level.
> >> > Now when I run the query...I get asked a "parameter" question
> >> > pertaining
> >> > to
> >> > the reorder level, and none of the calculation work any more.
> >> > Confused?????
> >> > Me too!
> >> >
> >> >
> >> > "ChrisM" wrote:
> >> >
> >> >>
> >> >> "ktfrubel" wrote in message
> >> >> news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
> >> >> >I am stumped!
> >> >> > I have 3 fields.
> >> >> > Reorder_qty
> >> >> > Maintain_qty
> >> >> > Physical_Count
> >> >> >
> >> >> > This is what I have written so far.
> >> >> >
> >> >> > Qty_to_order:
> >> >> > IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
> >> >> >
> >> >> > I basically want the query to give me a total of how much to order
> >> >> > when
> >> >> > the
> >> >> > Physical count is less than or equal to the reorder level. But it
> >> >> > needs
> >> >> > to
> >> >> > generate the difference between the maintain qty and the physical
> >> >> > count.
> >> >> >
> >> >> > What am I doing wrong?
> >> >>
> >> >> You don't actually say what the problem is, maybe you could give a few
> >> >> more
> >> >> details.
> >> >> In the meantime, may I just correct what I assume is a typo in your
> >> >> code,
> >> >> if
> >> >> it isn't then that may be your problem:
> >> >>
> >> >> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)
> >> >>
> >> >> Cheers,
> >> >>
> >> >> Chris.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:31 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP

WHERE (((Supply_Table.Show) Like Yes))

is incorrect

If Show is a boolean field (Yes/No), that should be:

WHERE (((Supply_Table.Show) = True))

If Show is a text field with Yes as a value in it, use

WHERE (((Supply_Table.Show) = "Yes"))

If Show is a text field and you want all rows where Show starts with the
word Yes, use

WHERE (((Supply_Table.Show) Like "Yes*"))

If Show is a text field and you want all rows where Show contains the word
Yes anywhere in the string, use

WHERE (((Supply_Table.Show) Like "*Yes*"))

If you're using ADO to run the query, rather than Access's normal DAO,
replace * with % in the last two examples.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"ktfrubel" wrote in message
news:9AEBE6DB-0D2B-42CE-B6F9-E82801DE2A89@microsoft.com...
> Here you go Chris
>
> SELECT Supply_Table.*,
> IIf([physical_count]<=[ReOrder_level],[qty_to_maintain]-[physical_count])

AS
> Qty_to_Order
> FROM Supply_Table
> WHERE (((Supply_Table.Show) Like Yes))
> ORDER BY Supply_Table.Product_Description;
>
>
> "ChrisM" wrote:
>
> > If you can,
> >
> > In the query design screen, select the SQL view, and post the SQL from

the
> > query here
> >
> > Cheers,
> >
> > Chris.
> >
> > "ktfrubel" wrote in message
> > news:1F901AE9-21DC-49AA-8500-AF085ACF4419@microsoft.com...
> > >I have checked and double checked... I even created a whole new query.

I
> > > just don't know.....It should work, but it isn't///
> > >
> > > "ChrisM" wrote:
> > >
> > >> Hmm,
> > >>
> > >> What you had in your OP (or at least my correction to it) seems

perfectly
> > >> fine to me.
> > >> Double check your spelling, and make sure the field names in the
> > >> calculated
> > >> field are EXACTLY the same as the astual field names (check
> > >> underscores/spaces and everything). If its prompting you for 'reorder
> > >> level'
> > >> then I'm guessing that's most likely the one that is different?
> > >> I notice in your post, you refer to 'Reorder Level' but in your

original
> > >> post, your field is 'Reorder_qty'...?
> > >>
> > >> Cheers,
> > >>
> > >> Chris.
> > >>
> > >> "ktfrubel" wrote in message
> > >> news:357BCF36-1E3C-4DB5-B9CC-377E29A8708E@microsoft.com...
> > >> > Chris,
> > >> > I apologize for being so vauge.
> > >> > The Qty_to_order field is a caluclated field in the query. Right

now
> > >> > it
> > >> > is
> > >> > written simply as Qty_to_Order: [maintain_qty]-[Physical_Count].

This
> > >> > gives
> > >> > me what I want. However thinking of exactly what I needthis query

to
> > >> > do,
> > >> > I
> > >> > discovered that I need to add a new field which is the ReOrder

Level
> > >> > Field.
> > >> > I added the field to my main table. So I thought I would write the
> > >> > code
> > >> > that
> > >> > I listed below becuase I would like the Qty_to_order field to

populate
> > >> > the
> > >> > difference between the Maintaining filed and the Physical field

only if
> > >> > the
> > >> > physical count is less than or equal to the reorder level.
> > >> > Now when I run the query...I get asked a "parameter" question
> > >> > pertaining
> > >> > to
> > >> > the reorder level, and none of the calculation work any more.
> > >> > Confused?????
> > >> > Me too!
> > >> >
> > >> >
> > >> > "ChrisM" wrote:
> > >> >
> > >> >>
> > >> >> "ktfrubel" wrote in message
> > >> >> news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
> > >> >> >I am stumped!
> > >> >> > I have 3 fields.
> > >> >> > Reorder_qty
> > >> >> > Maintain_qty
> > >> >> > Physical_Count
> > >> >> >
> > >> >> > This is what I have written so far.
> > >> >> >
> > >> >> > Qty_to_order:
> > >> >> >

IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
> > >> >> >
> > >> >> > I basically want the query to give me a total of how much to

order
> > >> >> > when
> > >> >> > the
> > >> >> > Physical count is less than or equal to the reorder level. But

it
> > >> >> > needs
> > >> >> > to
> > >> >> > generate the difference between the maintain qty and the

physical
> > >> >> > count.
> > >> >> >
> > >> >> > What am I doing wrong?
> > >> >>
> > >> >> You don't actually say what the problem is, maybe you could give a

few
> > >> >> more
> > >> >> details.
> > >> >> In the meantime, may I just correct what I assume is a typo in

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
your
> > >> >> code,
> > >> >> if
> > >> >> it isn't then that may be your problem:
> > >> >>
> > >> >>

IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)
> > >> >>
> > >> >> Cheers,
> > >> >>
> > >> >> Chris.
> > >> >>
> > >> >>
> > >> >>
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> > >>
> > >>
> > >>

> >
> >
> >



Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:31 AM
ktfrubel's Avatar ktfrubel
Guest
 
Posts: n/a
   
   
Re: Answer needed ASAP

  Donate Today!  
Douglas,
I am not trying to sound ignorant, but I don't write in the SQL area. I
normally just create the queries in design view. The only thing I did was a
chose the * to choose all the fields from the main talbe "Supply_Table" to
create me a query called "ShowYes" In this query is where I have created the
calulated field as I mentioned below. I do not want anything to show the
word Yes anywhere. forgive me because I don't understand what your are
telling me to try. I however would love to. I have been learning access
going on 2 years now, and have never really dove into this language.
Anything you can do to help will be greatly appreciated

"Douglas J Steele" wrote:

> WHERE (((Supply_Table.Show) Like Yes))
>
> is incorrect
>
> If Show is a boolean field (Yes/No), that should be:
>
> WHERE (((Supply_Table.Show) = True))
>
> If Show is a text field with Yes as a value in it, use
>
> WHERE (((Supply_Table.Show) = "Yes"))
>
> If Show is a text field and you want all rows where Show starts with the
> word Yes, use
>
> WHERE (((Supply_Table.Show) Like "Yes*"))
>
> If Show is a text field and you want all rows where Show contains the word
> Yes anywhere in the string, use
>
> WHERE (((Supply_Table.Show) Like "*Yes*"))
>
> If you're using ADO to run the query, rather than Access's normal DAO,
> replace * with % in the last two examples.
>
> --
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "ktfrubel" wrote in message
> news:9AEBE6DB-0D2B-42CE-B6F9-E82801DE2A89@microsoft.com...
> > Here you go Chris
> >
> > SELECT Supply_Table.*,
> > IIf([physical_count]<=[ReOrder_level],[qty_to_maintain]-[physical_count])

> AS
> > Qty_to_Order
> > FROM Supply_Table
> > WHERE (((Supply_Table.Show) Like Yes))
> > ORDER BY Supply_Table.Product_Description;
> >
> >
> > "ChrisM" wrote:
> >
> > > If you can,
> > >
> > > In the query design screen, select the SQL view, and post the SQL from

> the
> > > query here
> > >
> > > Cheers,
> > >
> > > Chris.
> > >
> > > "ktfrubel" wrote in message
> > > news:1F901AE9-21DC-49AA-8500-AF085ACF4419@microsoft.com...
> > > >I have checked and double checked... I even created a whole new query.

> I
> > > > just don't know.....It should work, but it isn't///
> > > >
> > > > "ChrisM" wrote:
> > > >
> > > >> Hmm,
> > > >>
> > > >> What you had in your OP (or at least my correction to it) seems

> perfectly
> > > >> fine to me.
> > > >> Double check your spelling, and make sure the field names in the
> > > >> calculated
> > > >> field are EXACTLY the same as the astual field names (check
> > > >> underscores/spaces and everything). If its prompting you for 'reorder
> > > >> level'
> > > >> then I'm guessing that's most likely the one that is different?
> > > >> I notice in your post, you refer to 'Reorder Level' but in your

> original
> > > >> post, your field is 'Reorder_qty'...?
> > > >>
> > > >> Cheers,
> > > >>
> > > >> Chris.
> > > >>
> > > >> "ktfrubel" wrote in message
> > > >> news:357BCF36-1E3C-4DB5-B9CC-377E29A8708E@microsoft.com...
> > > >> > Chris,
> > > >> > I apologize for being so vauge.
> > > >> > The Qty_to_order field is a caluclated field in the query. Right

> now
> > > >> > it
> > > >> > is
> > > >> > written simply as Qty_to_Order: [maintain_qty]-[Physical_Count].

> This
> > > >> > gives
> > > >> > me what I want. However thinking of exactly what I needthis query

> to
> > > >> > do,
> > > >> > I
> > > >> > discovered that I need to add a new field which is the ReOrder

> Level
> > > >> > Field.
> > > >> > I added the field to my main table. So I thought I would write the
> > > >> > code
> > > >> > that
> > > >> > I listed below becuase I would like the Qty_to_order field to

> populate
> > > >> > the
> > > >> > difference between the Maintaining filed and the Physical field

> only if
> > > >> > the
> > > >> > physical count is less than or equal to the reorder level.
> > > >> > Now when I run the query...I get asked a "parameter" question
> > > >> > pertaining
> > > >> > to
> > > >> > the reorder level, and none of the calculation work any more.
> > > >> > Confused?????
> > > >> > Me too!
> > > >> >
> > > >> >
> > > >> > "ChrisM" wrote:
> > > >> >
> > > >> >>
> > > >> >> "ktfrubel" wrote in message
> > > >> >> news:B989E791-1CEF-4F38-86C8-199318DCD359@microsoft.com...
> > > >> >> >I am stumped!
> > > >> >> > I have 3 fields.
> > > >> >> > Reorder_qty
> > > >> >> > Maintain_qty
> > > >> >> > Physical_Count
> > > >> >> >
> > > >> >> > This is what I have written so far.
> > > >> >> >
> > > >> >> > Qty_to_order:
> > > >> >> >

> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count].
> > > >> >> >
> > > >> >> > I basically want the query to give me a total of how much to

> order
> > > >> >> > when
> > > >> >> > the
> > > >> >> > Physical count is less than or equal to the reorder level. But

> it
> > > >> >> > needs
> > > >> >> > to
> > > >> >> > generate the difference between the maintain qty and the

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12688
> physical
> > > >> >> > count.
> > > >> >> >
> > > >> >> > What am I doing wrong?
> > > >> >>
> > > >> >> You don't actually say what the problem is, maybe you could give a

> few
> > > >> >> more
> > > >> >> details.
> > > >> >> In the meantime, may I just correct what I assume is a typo in

> your
> > > >> >> code,
> > > >> >> if
> > > >> >> it isn't then that may be your problem:
> > > >> >>
> > > >> >>

> IIf([physical_Count]<=[Reorder_qty],[maintain_qty]-[Physical_Count],0)
> > > >> >>
> > > >> >> Cheers,
> > > >> >>
> > > >> >> Chris.
> > > >> >>
> > > >> >>
> > > >> >>
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >

>
>
>

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

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 335 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,038 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 81 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 116 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 229 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 44 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 414 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 09:09 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 1.39691 seconds with 30 queries