Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


retrieve top 100 and then search in all records??

retrieve top 100 and then search in all records??


I have window- with dw object - when i open this window i retrieve all records in the datawindow (dw_1.retriev())

when user wants to search for a specific record i put criteria he enteres in valid expression(ls_filter)

then dw_1.setfilter(ls_filter)


my app works fine when server is on local net work

now it is required to put server on the net(cloud) so in open event i can not retrieve all rows as it take about five minutes to retrieve all rows(very very long period)

so in sql synatx of dw_1 I i added top 100(after select) that make dw to retrieve only last 100 rows

my question is if user want to search for specific record is this mean i must retrieve all rows to search and thus take long time again to load all row s

is this right??

or there are other solution?and how

Best Regards

RE: retrieve top 100 and then search in all records??

Don't retrieve any records until the user enters a search, then select the records based on the user entry.


"Nature forges everything on the anvil of time"

RE: retrieve top 100 and then search in all records??

how to select a record based on user entry with out retrieve all rows then filter by using expression?
if i used select top 100 then i use filter - dw filter out rows which not have filter from 100 row i prev retrieved

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close