The following example sets the RowSource property for the lstContact list box control to a field in a dBASE IV table.
Dim strGetSQL AS String
strGetSQL = "SELECT Customer.COMPANYNAM, Customer.PHONE FROM Customer IN 'c:\dbdata'[dBASE IV;];"
Me.lstContact.RowSource = strGetSQL
In the next example, the source of data for the query is a dBASE IV table named Customer in the C:\Dbdata folder. You can enter this SQL statement in SQL view of a Query window.
SELECT Customer.COMPANYNAM, Customer.PHONE
FROM Customer IN 'c:\dbdata'[dBASE IV;];