Question : Problem with error 2465

Hi experts,

I have runtime error 2465 coming up when i click on a button in my access form.

The error says: Runtime error 2465.  Microsoft Office Access can't find the field '|' referred to in your expression.

When i click on debug I get the following code highlighted:

Forms![mainform]![subform].Form![Fin1Hidden] = [Fin1].[Column](0)

Can anybody help?
Thank you
Terry

Answer : Problem with error 2465

Let me try that again:

Hi Terence,

Depends on where Fin1 is - your code does not specify.  

If Fin1 is on main form then:

Forms!mainform!subform.Form!Fin1Hidden = Forms!mainform!Fin1.Column(0)

If Fin1 is on the subform then:
Forms!mainform!subform.Form!Fin1Hidden = Forms!mainform!subform.Form!Fin1.Column(0)

Also, ditch the square brackets - not needed in code.
Random Solutions  
 
programming4us programming4us