Using TTable's Lookup Method ?

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-04-04
Can anyone tell me what I am doing wrong here?
I c
keep getting the same answer either way

Note: LastLogIn is a DateTime Stamp

 V: Variant;

V:= tblAccounts.Lookup('UserName; Password', VarArrayOf([U,P]),'LastLogIn');
if not (VarType(V) in [varNull]) then
    ShowMessage('Account exist!')
    ShowMessage('Account does not exist');
Question by:shaneholmes
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

MPountley earned 200 total points
ID: 8022249

Your best bet is to convert to queries. They are much more efficient and flexable, esp when you want to use multiple tables.

If you need to use a TTable, use the locate method. You will not be use Variant so Locate will be more efficient.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question