Get teh value from one form to another

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Have this combobox with values from a table
this works fine
Then i have cmd button there open a form
in this form i shall write a new value in another table
but i shall also use the value from the other forms
combobox
I have try many things but get only the result 0 in this field
I don't understand why
In the second form, the one i open to write a new value i have try to use:
= [maidnr] = Forms![opret/rette]![cmomaerke]

regards
Alvin
 
alvin said:
Have this combobox with values from a table
this works fine
Then i have cmd button there open a form
in this form i shall write a new value in another table
but i shall also use the value from the other forms
combobox
I have try many things but get only the result 0 in this field
I don't understand why
In the second form, the one i open to write a new value i have try to use:
= [maidnr] = Forms![opret/rette]![cmomaerke]


You can not assign a value to a dield using an expression in
a text box. The use of the expression precludes binding the
text box to a field in the form's record source table/query.
In stead, you need to use a line of VBA code in an event
procedure.

I don't know where you may want to do it, perhaps in the
form's Load event??

Me.maidnr = Forms![opret/rette]!cmomaerke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top