SantasLittleHelper
Board Regular
- Joined
- Nov 25, 2016
- Messages
- 77
On a Form, I have a button to open a different form based on the current URN displayed. The code is below:
This code works but everytime a user clicks on it, an 'Enter Paramater Box' appears. It displays the current URN and they need to copy the URN into the box. The image below may help understand... In this example, I have tried to open a form to the URN 'TESTURN123'. To open the form, I need to enter the exact URN into the box.
https://i.postimg.cc/J4V24w9L/Untitled.png
Is there a way of preventing this (what seems to be a validation step)?
Code:
Private Sub Button1_Click()
DoCmd.OpenForm "frm_01", , , "[Company URN] = " & Me![Company URN]
End Sub
This code works but everytime a user clicks on it, an 'Enter Paramater Box' appears. It displays the current URN and they need to copy the URN into the box. The image below may help understand... In this example, I have tried to open a form to the URN 'TESTURN123'. To open the form, I need to enter the exact URN into the box.
https://i.postimg.cc/J4V24w9L/Untitled.png
Is there a way of preventing this (what seems to be a validation step)?