If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > invalid qualifier error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-16-03, 08:51
kfenstad kfenstad is offline
Registered User
 
Join Date: May 2003
Posts: 25
invalid qualifier error

hello,

i am new to access so i am probably missing something simple! i am getting an error when i try to get the count of an array. i declare this array in the general declarations as

dim isAView() As String

in a later sub i do...

Set oViews = oServer.Databases.Item(sDatabase).Views
iViewCount = oViews.Count
ReDim isAView(iViewCount - 1) As String
iIndex = 0
For Each oView In oViews
If oView.SystemObject = False Then
isAView(iIndex) = oView.Name
iIndex = iIndex + 1
End If
Next oView

this works fine. then, when i try to use the array in a later sub...

ReDim Preserve isAView(oServer.Databases.Item(sDatabase).Views.Co unt)
For iLoop = 0 To isAView.Count - 1
If isAView(iLoop) = sTable Then
boolView = True
End If
Next iLoop

i am getting an "invalid qualifier" error on isAView.Count... should i be doing ReDim Preserve? what am i missing?
thanks for the help
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On