Ok, I figured out the if statement for anyone that was wondering.
Used the iif command to accomplish my task:
Code:
AR_Amount: IIf([fp]="up",[sale],[sale]-[net])
Which is, if the field FP has the term "UP" written in it, display the Sale field, otherwise display the sale field minus the net field.
So at the moment, I kind of accomplished what I wanted, but I'm still having issues.
I wanted to display the AR_Amount on my main form corresponding to each record, but instead, it is only displaying the first value of AR_Amount for every record.
I created a textbox and typed this as the data source:
Code:
=DLookUp("[AR_Amount]","[Account Receivable]")
I also tried to requery by added in the event after update with the code:
Code:
Private Sub AR_A_AfterUpdate()
Me!AR_A.Requery
End Sub
But that did not work either. (AR_A is the name of the text box I created)
I am not really sure where the problem lies, but I will try messing around with relationships to see if maybe that will fix it.