473,473 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

help with parameter queries - code added


The code for the query I have written is:

SELECT
[dbo.census].[FacilityCode],[dbo_census].[Facility],[dbo_census].[LastNa
me],[dbo_census].[SSN]
FROM dbo_census
WHERE ((([dbo_census].[FacilityCode])=[Please Enter Facility Code])));
That code results in the parameter value request being made twice before
the information I want shows up in the datasheet view.

I wrote the query originally using the Design view rather than in SQL as
I don't know as much about that. The SQL is what shows when I switch to
the SQL view.
Thanks!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
2 1487
<snip>
[dbo.census].[FacilityCode], </snip>

is [dbo.census] correct? Looks like it should be [dbo_census]....do you
have two tables? or just one?

Have you tried MGFosters idea? I think theres some merit to his suggestion.
P.S. Its probably not a good idea to post responses to threads as new
threads....this should have simply been a response to my request for the
query code in your original thread "help with parameter value queries" on
11/28/03 :) just a suggestion.

HTH

Mike Krous

"Christine Brandel" <le********@comcast.net> wrote in message
news:3f***********************@news.frii.net...
The code for the query I have written is:

SELECT
[dbo.census].[FacilityCode],[dbo_census].[Facility],[dbo_census].[LastNa
me],[dbo_census].[SSN]
FROM dbo_census
WHERE ((([dbo_census].[FacilityCode])=[Please Enter Facility Code])));
That code results in the parameter value request being made twice before
the information I want shows up in the datasheet view.

I wrote the query originally using the Design view rather than in SQL as
I don't know as much about that. The SQL is what shows when I switch to
the SQL view.
Thanks!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #2

Thanks, MGFoster's idea DID work, and I was very happy about that.
Thanks for all your help. It's all working fine now.

Christine
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Greg | last post by:
I am tying to set a parameter in a query that will only slect cutomer codes between two given #'s. I have a 3 part query....... 1st I am querying the customer codes that have a current balance. ...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
5
by: Arvin Portlock | last post by:
I can't come up with a query that works. Can anyone help? Conceptually the relationships are easy to describe. I have a table for books (Entries), a table for authors (Authors), and a linking...
1
by: Cory | last post by:
When I run the subroutine testEmailContacts the msgbox says that there is only 1 record. The sql for qyEmailContactsQyCard is below. There is over 3000 records in the table "tbl:Contact". What am i...
2
by: deko | last post by:
Is it possible to build a parameterized query from another parameterized query? I've tried two variations of this and can't seem to get it to work (using DAO). Any suggestions welcome! I...
21
by: Marc DVer | last post by:
I am trying to create a query that can be loaded as a querydef object but not having to assign values to the parameters if I don't want to. Normally when using a parameter query in VBA my code...
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
0
by: Billie Boy | last post by:
Hi to all. I’m new here and am coming to you from Melbourne Australia. So a big HELLO 2 ALL. Now I am encountering an annoying problem in the SQL builder of the copy of VB.6 that I am using at...
6
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID,...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.