PC Review


Reply
Thread Tools Rate Thread

Access VBA error "Microsoft Access can't find the field '|' referred to in your experssion"

 
 
New Member
Join Date: Jul 2012
Posts: 2
 
      20th Jul 2012
I have a form with a large number of columns. I would like to show/hide the columns by lopping around a recordset. the recordset works fine it's just when I come to hide the column on the form I get the error message

"Microsoft Access can't find the field '|' referred to in your experssion"

Dim rc
Set rc = CurrentDb.OpenRecordset("select [Field],[Display] from vw_Display_frm_Sub_GTR_tb_ExportData")
With rc
Do Until .EOF
If rc!display = "Show" Then
Me.[rc!field].ColumnHidden = True
Else
Me.[rc!field].ColumnHidden = False
End If
.MoveNext
Loop
End With

Can anyone help me get the variable into the expression or is it not possible?

Regards
Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access VBA error "Microsoft Access can't find the field '|' referred to in your experssion" steve77london General Discussion 0 20th Jul 2012 08:59 AM
Re: Run-time error 2465 can't find the field | referred to in your expression John W. Vinson Microsoft Access 0 14th May 2009 01:02 AM
RE: Run-time error 2465 can't find the field | referred to in your exp Beetle Microsoft Access 0 14th May 2009 12:40 AM
ERROR: "...Can't find the field 'i' referred to in your expression Glint Microsoft Access Form Coding 1 29th Jun 2008 04:55 AM
Tip - Possible fix for "Microsoft Office Cant Find the Field 'X' referred to in your expression" error D.Gabriel.Epstein@gmail.com Microsoft Access Reports 6 13th Jun 2006 08:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 PM.