C
Chris_S
Hello,
here's the problem:
There is a table with columns called Number
(Autoincrement) and ContractNo (text, 12 digits, only
numbers).
On the form there is a List Box that gets the rows from
the mentioned table and the mentioned colums but only
ContractNo is displyed.
Now,
on Listbox DoubleClick there is an action to open other
form locked on a record specified by the value of listbox
when column Number is bound (the hidden one) something
like this works perfect:
DoCmd.OpenForm "Form1_Frm", , , "Number=" & Me.List0.Value
but when the second column is bound (ContractNo) this
doesn't work and calls 2501 error:
DoCmd.OpenForm "Form1_Frm", , , "ContractNo=" &
Me.List0.Value
Where is my mistake?
Grateful for any hints on how to solve this problem?
here's the problem:
There is a table with columns called Number
(Autoincrement) and ContractNo (text, 12 digits, only
numbers).
On the form there is a List Box that gets the rows from
the mentioned table and the mentioned colums but only
ContractNo is displyed.
Now,
on Listbox DoubleClick there is an action to open other
form locked on a record specified by the value of listbox
when column Number is bound (the hidden one) something
like this works perfect:
DoCmd.OpenForm "Form1_Frm", , , "Number=" & Me.List0.Value
but when the second column is bound (ContractNo) this
doesn't work and calls 2501 error:
DoCmd.OpenForm "Form1_Frm", , , "ContractNo=" &
Me.List0.Value
Where is my mistake?
Grateful for any hints on how to solve this problem?