jwagner;10919483 wrote:Can you please provide an examply of how dlookup() is used in VB?
I'm sure it would be pretty easy building a custom function doing the same thing, using MySql in the function and passing some parameters to it.
Sure.
Dlookup( [FieldName], [TableName], [Criteria])
So if I wanted to pull back the height (from the field 'Height') of a person who had ID #88 from the tblPersonDetails table, I'd do....
Dlookup( "Height", "tblPersonDetails", "[ID] = 88")
So in other words I guess it's just a shorter way of writing....
SELECT tblPersonDetails.Height
FROM tblPersonDetails
WHERE [ID] = 88;