I have a form in VB6 which allows me to view and edit data in my Access 2000 table (Tablename = QAReview.mdb). The table has a key field called JobNo which I want to use to open, from my pulldown menu, Word, Excel and Adobe documents relevant to that Job Number which all carry the JobNo within their filenames.
So firstly, I need to know how to code my pulldown menu to return the ACTIVE JobNo of the record which is in view/focus on the form.
The pulldown menu is on the form and is executed when form is displaying the data for that particular JobNo/record, so Table QAReview.mdb is already connected by the Record Navigator Bar (called... datPrimaryRS Adodc) at bottom for form.
I was able to program this in Access using Dlookup and Me.JobNo but these are not recoginsed in VB6.
I have tried searching for the answer but most refer to the passing of variables and not exactly what I am looking for i.e. the return of the field value of JobNo of the IN-FOCUS RECORD of the form.
Any help is, as always, much appreciated.
So firstly, I need to know how to code my pulldown menu to return the ACTIVE JobNo of the record which is in view/focus on the form.
The pulldown menu is on the form and is executed when form is displaying the data for that particular JobNo/record, so Table QAReview.mdb is already connected by the Record Navigator Bar (called... datPrimaryRS Adodc) at bottom for form.
I was able to program this in Access using Dlookup and Me.JobNo but these are not recoginsed in VB6.
I have tried searching for the answer but most refer to the passing of variables and not exactly what I am looking for i.e. the return of the field value of JobNo of the IN-FOCUS RECORD of the form.
Any help is, as always, much appreciated.