I have the follwoing query that is updating the data in table SupplierTable1
Now I want the above query to update data only if SupplierID exists in VendorTable and the orderDate is not null.
I have another UPDATE query
Now I want the above query to update data only if SupplierID exists in VendorTable and the orderDate is null.
CAN I COMBINE BOTH Queries.
Code:
UPDATE SupplierTable1
SET TodayDate = '#DATEFORMAT(Now(), "mm/dd/yyyy")#',
Suppliermail = '#form.Supplieremail#',
SupplierStreet = '#form.SupplierStreet#',
SupplierCity = '#form.SupplierCity#',
SupplierState = '#session.SupplierState#',
SupplierMiles = '#session.SupplierMiles#',
SupplierPhone = '#session.SupplierPhone#',
SupplierMailBox = '#session.SupplierMailBox#'
WHERE SupplierID=#form.SupplierID#
I have another UPDATE query
Code:
UPDATE SupplierTable1
SET TodayDate = '#DATEFORMAT(Now(), "mm/dd/yyyy")#',
Suppliermail = '#session.Supplieremail#',
SupplierStreet = '#session.SupplierStreet#',
SupplierCity = '#session.SupplierCity#',
SupplierState = '#form.SupplierState#',
SupplierMiles = '#form.SupplierMiles#',
SupplierPhone = '#form.SupplierPhone#',
SupplierMailBox = '#form.SupplierMailBox#'
WHERE SupplierID=#form.SupplierID#
CAN I COMBINE BOTH Queries.