4 Replies - 454 Views - Last Post: 03 December 2016 - 08:48 AM

#1 Bonekit  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 71
  • Joined: 09-May 16

Combobox - Listindex Problem

Posted 02 December 2016 - 02:26 PM

Hello Folks,

I created a combobox (cboMonth) with 2 Columns.
Column 1 = January, February, March...
Column 2 = 01,02,03...
cboMonth is connected to tblMonth.

When i start frmMain the combobox is blank on default.
When i use cboMonth.Listindex = 0, i get the failure code = 7777
What i did wrong?

Regards
Tobias

This post has been edited by Bonekit: 02 December 2016 - 02:27 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Combobox - Listindex Problem

#2 andrewsw  Icon User is online

  • lashings of ginger beer
  • member icon

Reputation: 6343
  • View blog
  • Posts: 25,601
  • Joined: 12-December 12

Re: Combobox - Listindex Problem

Posted 02 December 2016 - 02:39 PM

What is the exact error message?

Mm a very quick search produces this as the first result.

Polish your Google-fu
Was This Post Helpful? 0
  • +
  • -

#3 Bonekit  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 71
  • Joined: 09-May 16

Re: Combobox - Listindex Problem

Posted 02 December 2016 - 02:49 PM

Description: "You have used the ListIndex-Properties wrong."
Was This Post Helpful? 0
  • +
  • -

#4 Bonekit  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 71
  • Joined: 09-May 16

Re: Combobox - Listindex Problem

Posted 03 December 2016 - 08:45 AM

So i found a solution for my problem.
I must set focus for cboMonth.

 
cboMonth.setfocus
cboMonth.ListIndex = 0


Was This Post Helpful? 0
  • +
  • -

#5 andrewsw  Icon User is online

  • lashings of ginger beer
  • member icon

Reputation: 6343
  • View blog
  • Posts: 25,601
  • Joined: 12-December 12

Re: Combobox - Listindex Problem

Posted 03 December 2016 - 08:48 AM

Yes, that was the resolution in the link I provided.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1