About ID Carry to the Other Form

notrino

Registered User.
Local time
Today, 05:26
Joined
Oct 18, 2018
Messages
26
Hello,

I attached an application. When you push the button on F1 form, F2 form is opening. But at the same time, I want to ID1 value can be transfer to the ID2. Normaly I can do this necessary with this code; (F2 load event)
Code:
Me.ID2.DefaultValue = Forms.F1.ID1
But, I want to realize this application with macro or expression builder. I tried expression builder with this code but it is not working. Do you know why? Thanks.
Note: I tried witg OpenArgs and TempVar. It is not working..
 

Attachments

For the benefit of other forum members, notrino has also posted this at AccessForums.net and UtterAccess.
He/she has also received what appears to be useful answers elsewhere.

@notrino
As previously explained by several people, all you need to do is provide the links when you crosspost. Please do so
 
here is the fix. view your macro.
 

Attachments

here is the fix. view your macro.

Helloo again arnelgp,

Your solution is very well, thanks. But if we need to allowedits=false feature for the F2 form, then your solution breaking the "allowedits" feature for F2 form. In this way, I found this solution;

F2 load event macro;
[ID2].[DefaultValue]
[Formlar]![F1]![ID1]

DefaultValue expression is not effect the allowedits feature for the F2 form
 

Users who are viewing this thread

Back
Top Bottom