Hi I got a Problem in Access.
I have three tables:
RESIDENTES
PRODUCTOS_PRENDAS related to RESIDENTES via COD_RESIDENTE
OPERACIONES related to PRODUCTOS_PRENDAS via COD_PRODUCTO
I have created a three tab form.
First Tab-> RESIDENTES
Second Tab-> PRODUCTOS_PRENDAS subform of RESIDENTES
Third Tab-> OPERACIONES subform of PRODUCTOS_PRENDAS
I was told in an answer in this community that it should be better to have one main tab
form with two controls which opens the subforms PRDOCUCTOS_PRENDAS and OPERACIONES.
I have the code for this option. Everthing is clear. I got the answer in this community.
But the requirements of the client are that we must create a three tab form. It's a MUST.
Accordint to the answers and examples of this community I must set a filter.
There are two options:
- In the PRODUCTOS_PRENDAS Current event I wrote:
Forms("OPERACIONES_Subformulario").Filter = "COD_PRODUCTO =" & Nz(Me.COD_PRODUCTO, 0)
Forms("OPERACIONES_Subformulario").cboClient.DefaultValue = """" & Me.COD_PRODUCTO & """"
Error I got:
Error 2450 in execution time (real time):
Microsoft Access doesn't find the form "OPERACIONES_Subformulario" which the expression refers to.
- In the PRODUCTOS_PRENDAS Current event I wrote:
Me.Form.OPERACIONES_Sub.Filter = "[COD_PRODUCTO]=" & Me.COD_PRODUCTO
Me.Form.OPERACIONES_Sub.FilterOn = True
Error 2465 in execution time (real time).
Error defined by the application (program) or the object.
Any help?
Thanks.