MarkWright
Programmer
Hello, I am trying to enter a number from one formular into another formular. I have a main formular and am opening another formular with the --> DoCmd.OpenForm "frmPBS_TestzyclusSLIN", , , "[testnr] = " & testnr & "", , acDialog
When the new formular opens one field should have the same number as the first field. I know how this works in mdb but it is not working in the adp. I can open a blank formular and enter the number from the first form and then reopen it with no problem using the code, but I want the number to be added to the new form when it'S opened. I have also used this code --> stDocName = "frmPBS_TestzyclusSLIN"
stLinkCriteria = "[testnr]=" & Me![testnr]
DoCmd.OpenForm stDocName, , , stLinkCriteria
but it is not working as well. can anyone help me ?
Thanks, have a nice day
Mark
When the new formular opens one field should have the same number as the first field. I know how this works in mdb but it is not working in the adp. I can open a blank formular and enter the number from the first form and then reopen it with no problem using the code, but I want the number to be added to the new form when it'S opened. I have also used this code --> stDocName = "frmPBS_TestzyclusSLIN"
stLinkCriteria = "[testnr]=" & Me![testnr]
DoCmd.OpenForm stDocName, , , stLinkCriteria
but it is not working as well. can anyone help me ?
Thanks, have a nice day
Mark