DbFind                                                                                                     Function

 

DBFIND(dbName as Database, dbKey as anyVarType)

 

Description

To determine if the record exists on the database with the given key value. The database must have been previously opened with DbOpen. dbkey must be a variable: it cannot be an expression. Returns an integer result. See DBOPEN for a table of result codes.

 

 

Example

Dim err as Integer

Err=DbFind(CustomerDb, "362")

If err>0 then

  Msgbox "Can't find customer 362's record"

end if