Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Using TTable's Lookup Method ?

Posted on 2003-02-25
1
Medium Priority
?
169 Views
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

var
 V: Variant;

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

Accepted Solution

by:
MPountley earned 200 total points
ID: 8022249
Shane,

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.

Regards,
Mark
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

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

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…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

564 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