using This SQL statement:
Code:
QryString = " SELECT EmployeeID, FirstName + ' ' + LastName AS Name," _
& " Address " _
& " FROM Employees " _
& " Where EmployeeID=1 " only the rows that have EmployeeID equal to '1' will be returned. I assume employeeID is either a primary key or no duplicates are allowed in that field; therefore you will only get one record. If you want all records, remove the WHERE clause:
Code:
QryString = " SELECT EmployeeID, FirstName + ' ' + LastName AS Name," _
& " Address " _
& " FROM Employees"
Bookmarks