From: K on
Hi all, I got two forms in database. 1st form name is "F_Login" and
2nd form name is "F_Main". How can I put "F_Login" ComboBox value
into "F_Main" Label. I tried below code but I am getting error.
Please can any friend help me on this.


On form "F_Main" Load event I put below code
Me.Label28.Caption = "Current User: " & Form![F_Login].Combo0.Value
From: Wolfgang Kais on
Hello K.
"K" wrote:
> Hi all, I got two forms in database. 1st form name is "F_Login" and
> 2nd form name is "F_Main". How can I put "F_Login" ComboBox value
> into "F_Main" Label. I tried below code but I am getting error.
> Please can any friend help me on this.
>
>
> On form "F_Main" Load event I put below code
> Me.Label28.Caption = "Current User: " & Form![F_Login].Combo0.Value

The name of the collection with the open form is named "Forms", not
"Form". So try this:
Me.Label28.Caption = "Current User: " & Forms![F_Login].Combo0.Value

In general, when asking for help, also tell us the error message.

--
Kind regards,
Wolfgang


 | 
Pages: 1
Prev: archiving data
Next: DSum and Dlookup issue