Run-time error??????

G

Guest

I am not sure why I am getting the following error...

Run-time error '2465':
Microsoft Access can't find the field '|' referred to in your expression.

Here is the code I have...

Private Sub cmdOK_Click()

DoCmd.OpenForm "frm_Hyperlinks", acNormal, , _
Me.cboDrawingNum =
[Tables]![tbl_DrawingsAndData]![DrawingNum]

End Sub

Does anyone know why this error is happening? or what is wrong with the code?

Thanks
 
M

Michel Walsh

Hi,


Try:


DoCmd.OpenForm "frm_Hyperlinks", acNormal, , _
Me.cboDrawingNum & "= DrawingNum "


that assumed that your table tbl_drawingsAndData is the table bound to the
form frm_Hyperlinks



Hoping it may help,
Vanderghast, Access MVP
 

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

Similar Threads


Top