Hi
I am trying to open a form in either Edit Form or New Form depending on the criteria. I have 2 SP Lists, one that stores client details and the other will store costings.
These lists are linked with the ID number of the client list and MasterID column in the costings list.
What I would like the button to do is, if there is a record in the costings list that has a matching number in its MasterID column, then the form is to open in EditForm with the details showing.
However, if there is no record in the costings list that relates to the selected client, then the form is to open in NewForm.
This is the formula that i have tried:
Set(MasterID, LookUp(LDR_Enquiry_Costs, MasterID = varRequest.ID));
If(
IsEmpty(MasterID),
NewForm(Form3),
EditForm(Form3));
Navigate(Screen1,ScreenTransition.None)
There is currently no data in the costings list so the form should open blank but i just get the no item to display message.
Any suggestions on how i can fix this please?
thanks