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 October 3rd, 2004, 06:30 PM
shogone shogone is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 shogone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Using SQL linked tables

I am converting Access data to SQL backend and Access front end. However I am having issues with all of my forms that "add a new record" or "duplicate a record". I get a "You can't go to specified record" error message when user clicks on "add record". All works fine in the old Access database. Tables are linked with ODBC connection to SQL tables. The forms involved all use a query with multiple tables in them. I have listed the SQL view of one query below. Any ideas would be appreciated!

SELECT DISTINCTROW Employees.Status, Employees.Loc, Monthly_Leave.ID, Employees.SSN, Monthly_Leave.LvCode, [Leave Codes].LvText, Monthly_Leave.Date, Monthly_Leave.LvDays, Employees.LastName, Employees.FirstName, Employees.Middle
FROM (Employees RIGHT JOIN Monthly_Leave ON Employees.ID = Monthly_Leave.ID) LEFT JOIN [Leave Codes] ON Monthly_Leave.LvCode = [Leave Codes].LvCode
ORDER BY Employees.LastName, Employees.FirstName;

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Using SQL linked tables


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 1 hosted by Hostway
Stay green...Green IT