S
Susan
I am accessing data in a MSAccess database through the
following code:
Dim DB As DAO.Database
Dim DBRecordSet As DAO.Recordset
Set DB = OpenDatabase(GlobalValues.DatabaseFilename)
Set DBRecordSet = _
DB.OpenRecordset _
("SELECT * FROM Document WHERE DocId='" & _
Product & _
"' ORDER BY SortParagraph(Paragraph) + ' ' _
SortParagraph(Sentence)")
where SortParagraph is a function defined in MSAccess.
When I try to run the code, I get the run-time error
3085 "Undefined function 'SortParagraph' in expression."
I have tried several things including moving the function
into a module that is visible to my VB code.
The only way that I've been able to get the function to
be visible is to open the Access application. However,
this gives undesirable results ... for instance, the
MSAccess window is briefly visible (i.e. flashes).
Any clues as to how I can get the semantics that I'm
looking for without opening the MSAccess application?
Thanks!
Susan
(e-mail address removed)
following code:
Dim DB As DAO.Database
Dim DBRecordSet As DAO.Recordset
Set DB = OpenDatabase(GlobalValues.DatabaseFilename)
Set DBRecordSet = _
DB.OpenRecordset _
("SELECT * FROM Document WHERE DocId='" & _
Product & _
"' ORDER BY SortParagraph(Paragraph) + ' ' _
SortParagraph(Sentence)")
where SortParagraph is a function defined in MSAccess.
When I try to run the code, I get the run-time error
3085 "Undefined function 'SortParagraph' in expression."
I have tried several things including moving the function
into a module that is visible to my VB code.
The only way that I've been able to get the function to
be visible is to open the Access application. However,
this gives undesirable results ... for instance, the
MSAccess window is briefly visible (i.e. flashes).
Any clues as to how I can get the semantics that I'm
looking for without opening the MSAccess application?
Thanks!
Susan
(e-mail address removed)