View Full Version : Coding for Update (under the gun)


lcline
02-06-2002, 05:11 PM
Thanks in advance!
Could someone please give me an example of using Dlookup to find a record and then update it. I can find the record by the following:
type1ans = DLookup("[TypeID]", "[tblEquip]", "[EquipType]= [cmbEquip]")
How do I update the fields called [Completed] (Y/N) and [DateCompleted]in [tblEqip] where type1ans equals the record ID. I am submitting all of this with a command button.
Thanks,
Lee

Pat Hartman
02-06-2002, 05:15 PM
Rather than using DLookup(), create an update query that takes a parameter to supply the equipment type.

lcline
02-07-2002, 12:10 AM
Da!
Sometimes I sit here so long I go totally brain dead!
Thanks Pat for the kick to get back on track!