Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 30th, 2005, 01:07 PM
desireemm desireemm is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 31 desireemm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 38 m 35 sec
Reputation Power: 5
Question Filter

I need to write a query that pulls a single record, then tie the form to the query. I would probably need a parameter in the query that specifies which record to pull, maybe the primary key value from the table (for example, Account_Num). Its for a database that has Access XP on the front end and SQL server 2000 as the engine

I am just not sure on how to do this, can anyone help??

Reply With Quote
  #2  
Old March 31st, 2005, 07:01 PM
GEM1204 GEM1204 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Texas
Posts: 169 GEM1204 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 9 h 36 m 57 sec
Reputation Power: 5
Can't you set the recordsource to the form you are tying to open you query and then when you open your form set a filter?

This is straight from the MS Access help file
DoCmd.OpenForm "Employees", , ,"LastName = 'King'" Hope this helps

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Filter


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