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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query paramete error



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2005, 03:14 AM
Mark
external usenet poster
 
Posts: n/a
Default Query paramete error

Hello All,

For some reason when I use a [Enter data] parameter in a queries criteria it
will not retreive any data, but if I add "000887479500" in it will work.
This is the case no mater if it is a text, or numeric field. I does it on
any feild I try.

I am using access97. I went to MS, but found no updates for it. Is there a
know bug, or is only me and my machine? Are there any settings that would
control this?

Thanks for looking.
  #2  
Old May 25th, 2005, 06:50 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Tue, 24 May 2005 19:14:01 -0700, "Mark"
wrote:

Hello All,

For some reason when I use a [Enter data] parameter in a queries criteria it
will not retreive any data, but if I add "000887479500" in it will work.
This is the case no mater if it is a text, or numeric field. I does it on
any feild I try.

I am using access97. I went to MS, but found no updates for it. Is there a
know bug, or is only me and my machine? Are there any settings that would
control this?

Thanks for looking.


Please post the SQL view of your query. I am not aware of any such
"bug", and I used many, many parameter queries in A97. I suspect there
is some other error in your query.

Indicate the datatype of the field being searched.


John W. Vinson[MVP]
  #3  
Old May 25th, 2005, 07:20 AM
Mark
external usenet poster
 
Posts: n/a
Default

John

Here is the SQL view of my query. The Field is text and my criteria is
numeric with leading zero's, but I have changed the parameter on the query to
text. I have also ran this on a text field with text criteria and nothing. I
will show this query in SQL view too at the end.

Thanks

This query works,

SELECT VIAWARE_WCS_TO_VIA_T.CONT, VIAWARE_WCS_TO_VIA_T.NEST_TO_CONT
FROM VIAWARE_WCS_TO_VIA_T
WHERE (((VIAWARE_WCS_TO_VIA_T.CONT)="000654035500"));

this one doesn't

SELECT VIAWARE_WCS_TO_VIA_T.CONT, VIAWARE_WCS_TO_VIA_T.NEST_TO_CONT
FROM VIAWARE_WCS_TO_VIA_T
WHERE (((VIAWARE_WCS_TO_VIA_T.CONT)="[Enter Container Number?]"));

This one doesn't either and the field is text and the criteria is text.

SELECT VIAWARE_WCS_TO_VIA_T.CONT, VIAWARE_WCS_TO_VIA_T.NEST_TO_CONT,
VIAWARE_WCS_TO_VIA_T.OP_CODE
FROM VIAWARE_WCS_TO_VIA_T
WHERE (((VIAWARE_WCS_TO_VIA_T.OP_CODE)=[data]));

I was trying to rule out if this is a text, numeric issue and with the last
query this has ruled it out with me.

"John Vinson" wrote:

On Tue, 24 May 2005 19:14:01 -0700, "Mark"
wrote:

Hello All,

For some reason when I use a [Enter data] parameter in a queries criteria it
will not retreive any data, but if I add "000887479500" in it will work.
This is the case no mater if it is a text, or numeric field. I does it on
any feild I try.

I am using access97. I went to MS, but found no updates for it. Is there a
know bug, or is only me and my machine? Are there any settings that would
control this?

Thanks for looking.


Please post the SQL view of your query. I am not aware of any such
"bug", and I used many, many parameter queries in A97. I suspect there
is some other error in your query.

Indicate the datatype of the field being searched.


John W. Vinson[MVP]

  #4  
Old May 25th, 2005, 07:00 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Tue, 24 May 2005 23:20:01 -0700, "Mark"
wrote:

this one doesn't

SELECT VIAWARE_WCS_TO_VIA_T.CONT, VIAWARE_WCS_TO_VIA_T.NEST_TO_CONT
FROM VIAWARE_WCS_TO_VIA_T
WHERE (((VIAWARE_WCS_TO_VIA_T.CONT)="[Enter Container Number?]"));


The reason it doesn't work is that it is searching for records where
the CONT field contains the literal text string [Enter Container
Number?] - and there probably won't be any.

Just remove the quotes.

John W. Vinson[MVP]
 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbee - error 3001 Invalid Argument running append query Newbee Adam New Users 3 March 9th, 2005 11:45 PM
Need tips for solving "Query Too Complex" error jclarkedude General Discussion 0 November 2nd, 2004 07:49 PM
How to work with "#error" result in a query David Jensen Running & Setting Up Queries 2 July 13th, 2004 03:03 AM


All times are GMT +1. The time now is 11:17 AM.


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