Re: Query's in VB code
From: Larry Linson (bouncer_at_localhost.not)
Date: 04/22/04
- Next message: Larry Linson: "Re: Delete Form MVP/ Access Eng"
- Previous message: Larry Linson: "Re: AutoNumber Field's value when creating a new record"
- In reply to: Brandon Brewer: "RE: Query's in VB code"
- Next in thread: Jim/Chris: "Query's in VB code"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 21:39:29 -0500
Where did you put the code?
If you are going to use the selected value from the list box, I see no
alternative to actually selecting the listbox. You could specifiy a default
value for the list box, and use that value, perhaps.
If you put the code in the Click or AfterUpdate event of the ListBox, then
the event will have to fire for the code to execute. When do you _want_ or
_expect_ the code to execute.
Larry Linson
Microsoft Access MVP
"Brandon Brewer" <anonymous@discussions.microsoft.com> wrote in message
news:4297FC4B-14DB-4965-808B-57A47B6196B9@microsoft.com...
> I got it working except that I have to click on the list box is there an
automatic way to do this
>
> I have tried to setfocus select object but I dont know what the object
would be called listBox
>
> If I dont select the list box it doesnt recognize the field says it is
empty
>
- Next message: Larry Linson: "Re: Delete Form MVP/ Access Eng"
- Previous message: Larry Linson: "Re: AutoNumber Field's value when creating a new record"
- In reply to: Brandon Brewer: "RE: Query's in VB code"
- Next in thread: Jim/Chris: "Query's in VB code"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|