Advertisement

03.14.2008 at 09:05AM PDT, ID: 23242167
[x]
Attachment Details

Pass any field name into the procedure

Asked by Jsara in Microsoft Access Database

Tags: , ,

I have the following code

Public Sub JumpToMyRecord(FrmName As String, FldName As String, RecordNum As String)
example - if I pass like below for the find first statment to work
.FindFirst "Case_Number = " & Recordnum

Getting error if I pass the field name - 'fldname' variable

.FindFirst "fldname = " & Recordnum
Start Free Trial
[+][-]03.14.2008 at 09:10AM PDT, ID: 21126787

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: Microsoft, Access, 2003
Sign Up Now!
Solution Provided By: JimFive
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.14.2008 at 09:13AM PDT, ID: 21126807

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628