In the Format event of my report i have a warning that gives a message in case the balance does not correspond to the number OnStore.However usually i have more than one discrepancies and i get the result as a warning message for each one.I want to get only one warning message ,if there is at least one discrepancy.What command can i give for that purpose? Furhter, can i have a control on my form, that also gives a message that siomething is worng with the data in my report ?
If Me![balance] <> Me!OnStore Then
Me!OnStore.ForeColor = 255
result = MsgBox("Something is wrong with the balance of the goods.", vbOKOnly, "Warning")
If Me![balance] <> Me!OnStore Then
Me!OnStore.ForeColor = 255
result = MsgBox("Something is wrong with the balance of the goods.", vbOKOnly, "Warning")