Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:37:38+00:00 2026-06-11T08:37:38+00:00

Here lstName is a name of a list box in Access form. Private Sub

  • 0

Here lstName is a name of a list box in Access form.

Private Sub cmdUp(lstName As String, SQLName As String, IDName As String, ColumnName As String)
  Dim sText As String
  Dim pText As String
  'check: only proceed if there is a selected item
  If lstName.ItemsSelected.Count = 1 Then
  (...)

After calling a procedure:

Call cmdUp(lstSchemaName.Name, "eo_ListSchema", "SchemaID", "SchemaName")

I get error it this line:

If lstName.ItemsSelected.Count = 1 Then

Error is:

Invalid Qualifier

So basically VBA cannot understant that lstName. is a list from which it should find how many items are selected.
I found that in VBA “strings are not objects, so there are no methods on the string variable that you can call”.

There should be a simple solution, but I cannot find it. How to deal with this kind of problem?

Any help is highly appreciated!

Edgaras

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:37:40+00:00Added an answer on June 11, 2026 at 8:37 am

    lstName as you’ve passed it in will just be the string name of your listbox, not the actual listbox instance.

    As this lstName is a string, calling lstName.ItemsSelected isn’t valid.

    You should be able to pass the listbox in instead:

    Private Sub cmdUp(lstBox As ListBox, SQLName As String, IDName As String, ColumnName As String)
    ...
    

    Then call this using:

    Call cmdUp(lstSchemaName, "eo_ListSchema", "SchemaID", "SchemaName")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two quick questions here... How can I use this example http://try.sencha.com/touch/2.0.0/examples/list-search/ of a searchable
I want to filter the table by last name, but cant work, here is
Here is the JQGrid setup information jQuery(document).ready(function () { jQuery(#list).jqGrid({ url: '/TabMaster/GetGridData', datatype: 'json',
I have this code here: $(#order).validate({ rules: { name: { required: true } lastname:
Here is some psuedo code for my table: List<IColumn<Foo>> columns = new ArrayList<IColumn<Foo>>(); columns.add(new
Here is the situation. i am currently using a list fragment in one of
for List Iterators i can access different elements but i can only access one
Here's my code: private void LoadStudents() { Int64 gradeInstanceId = Convert.ToInt64(cmbGradeInstance.SelectedValue); StudentInstanceRepository studentInstanceRepo =
Here's my App code: Ext.application({ name: 'ProjectName', appFolder: APP_URL + app, // phoneStartupScreen: 'LOGO.png',
Please have a look at the following code public List<String> getNames() { List<String> names

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.