Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 29th, 2004, 01:35 PM
pfarmer pfarmer is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 pfarmer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question SQL / Access 2002 Parameter Query ?

I am converting my data from Access to SQL. I will use Access 2002 Project(adp) application to get to the data.

In access 2000 i was able to combine a Parameter query and wild card when getting data, allowing users to type in part
of a object name and return the data.

It looked like this: like [enter item_id] &"*"

In Access Project (ADP), i am using a In Line Function to query the data.
In the criteria field, i have entered the following: @item_id
It workd fine if the user knows the entire item_id.

Is there a way to add a wildcard at the end, allowing the user to enter part of the item_id?

Or is there a way to get a drop down box in a form used to enter the parameters?

Thank you,
Pfarmer

Reply With Quote
  #2  
Old December 30th, 2004, 02:05 PM
Spikeydog Spikeydog is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 Spikeydog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: SQL / Access 2002 Parameter Query ?

In the InLine Function try using:

@item_id + '%'

This should give you the same as [item_id] & "*" in Access.

The SQL Query Analyser will let you debug this code and see exactly what is being passed,

Hope this helps - Clive

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > SQL / Access 2002 Parameter Query ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT