Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Using Readpast to skip records

I have an Access database that contains orders that need to be
processed. The users of this database use an Excel spreadsheet to
access the database. Basically, what I'm trying to accomplish is when
a user asks for a new order, the SQL query hits the database, locks
the record, assigns the record to the person requesting it, pulls the
info to excel and displays it. Here's the SQL statement:

strSELECT5 = "SELECT * from [RES LNP Production Table] [Readpast]
WHERE [LNPSpecName] is NULL ORDER BY [LSRSentDate];"
' New/Unassigned orders

What is happening: When simultaneous requests are made, users are
getting the same record. I thought that Readpast would skip the locked
records. What am I doing wrong?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
using IF to skip Julie Excel Worksheet Functions 4 March 14th 08 10:21 PM
Using vb to paste records from 1 sheet, to related records in another chrisnichols87 Excel Programming 0 January 10th 07 10:59 AM
Copy Records from Access Database table(more than 5 lakh records in this table) to Excel Sheet divya Excel Programming 1 October 26th 06 12:12 PM
draw 999 x 8 random records from file with 8614 records news.wanadoo.nl Excel Programming 1 March 1st 06 03:04 PM


All times are GMT +1. The time now is 09:10 PM.

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

About Us

"It's about Microsoft Excel"