Re: Populating ComboBox
- From: "Dave O." <nobody@xxxxxxxxxxx>
- Date: Thu, 1 Feb 2007 16:51:43 -0000
Try single stepping through the Click event to see where the execution is
just after the event ends, that should tell you what is calling it. There is
probably something setting the ListIndex property.
Also in addition to what Jeff said, you should ALWAYS test App.Path for a
backslash because if the application is in a root folder (easy if in a USB
stick or a mapped drive) App.Path will already have the backslash so you end
up with 2 of them and a certain error.
i.e.:
dim s as string
s = App.Path
if Right$(s,1) <> "\" then s = s & "\"
s = s & "\DB\MyTable.mdb"
I don't use that method of interacting with databases so I really cant help
you with that, try posting a question in the microsoft.public.vb.databases
forum.
Regards
Dave O.
<rn5a@xxxxxxxxxxxxxx> wrote in message
news:1170347656.760384.302730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 1, 9:19 pm, "Jeff Johnson" <i...@xxxxxxxxxxx> wrote:
<r...@xxxxxxxxxxxxxx> wrote in message
news:1170345948.684381.316930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
But when I select an item from the ComboBox, then I get a 'Unspecified
error' which points to this line in the OnClick event function of the
ComboBox:
objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
App.Path & "/DB/MyTable.mdb"
Try using backslashes ( \ ) in the path name instead of the slashes ( / )
you currently have.
No...Jeff....that doesn't make any difference....I still get that
error.
What I find surprising is the MsgBox (bnBusy) is not even in any loop;
so what's causing the MsgBox line to fire more than 60 times!!
Any other ideas/suggestions?
.
- References:
- Populating ComboBox
- From: rn5a
- Re: Populating ComboBox
- From: Dave O.
- Re: Populating ComboBox
- From: rn5a
- Re: Populating ComboBox
- From: rn5a
- Re: Populating ComboBox
- From: rn5a
- Re: Populating ComboBox
- From: Jeff Johnson
- Re: Populating ComboBox
- From: rn5a
- Populating ComboBox
- Prev by Date: VB script and GPO
- Next by Date: Re: 10 to 20 item optimizer?
- Previous by thread: Re: Populating ComboBox
- Next by thread: Re: vb6 on vista ultimate
- Index(es):
Relevant Pages
|