cannot find Access query refered in module

G

Guest

Hi,
I have been facing a strange problem in VBA

I have function in a module like this:

Public Function GetGroupCodes()

Dim rs As DAO.Recordset
Dim sPrefix As String
Dim sRelat As String

Set rs = CurrentDb.OpenRecordset("PAG Relationships")

With rs

.MoveFirst

While Not .EOF
sPrefix = .Fields("prefix")
sRelat = .Fields("AGRelat")
updFRID sPrefix, sRelat
.MoveNext
Wend

End With

Set rs = Nothing

End Function

I need to modify the Table/ query " PAG Relationship " Unfortunately there
is no table or query or a string named PAG relationship set with the select
query that I can find in the whole project. I searched with find and repace
altrough the project but no luck.

Any help regarding this problem is very much appreciated.
Thanks In advance.

srabani
 
G

Guest

Could be hidden. Run the following:

SELECT MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE MSysObjects.Name = "PAG Relationships"
ORDER BY MSysObjects.Name;

5 is a query and 1 or 6 are tables.
 

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

Top