I have a relationship between tblCustomers (pk) and tblCustomersSub (fk)
I have a StartTime field in table (tblCustomersSub) that has a lookup in "before changes" to set a field to yes or no that is in another table (tblCustomers)
I can get it to work so it looks up the date and sets the field but I want it do that for each individual record as it pertains to the relationship. Right now it looks up a date and sets the field to yes or no for every record.
macro is like this:
Look up a record in : tblCustomersSub
where condition = [tblCustomersSub].[Start Time] Like "2012-08*"
Alias:
If [tblCustomersSub].[Start Time] Like "2012-08*" Then
Setfield
Name: tblCustomers.August
Value= Yes
Else
Setfield
Name: tblCustomers.August
Value= No
End If
I have a StartTime field in table (tblCustomersSub) that has a lookup in "before changes" to set a field to yes or no that is in another table (tblCustomers)
I can get it to work so it looks up the date and sets the field but I want it do that for each individual record as it pertains to the relationship. Right now it looks up a date and sets the field to yes or no for every record.
macro is like this:
Look up a record in : tblCustomersSub
where condition = [tblCustomersSub].[Start Time] Like "2012-08*"
Alias:
If [tblCustomersSub].[Start Time] Like "2012-08*" Then
Setfield
Name: tblCustomers.August
Value= Yes
Else
Setfield
Name: tblCustomers.August
Value= No
End If