Re: Click Function Problem - Code Help Required

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Claire (claire_at_private.com)
Date: 05/04/04


Date: Mon, 3 May 2004 21:50:43 -0600

Hi Alan:

I know this is unconventional, unfortunately, I have adopted a database that
was originally programmed in Access 2. The logic is not the way that I would
have written it so I thought this would be easier than rewriting most of the
60 odd queries in this database.

However, I do not have any code associated with the On Click event of the
list box. I would like to make the list box invisible so that the end user
does not have to click in it at all. I would like the correct code to be
written in the After Update event of my combo box.

Private Sub cboProgress_AfterUpdate()
    Dim lstGstNew As Variant

    Me.lstGstNew.Requery (correct result shows)
    Me.lstGstNew.SetFocus (goes to the list box)
    Me.lstGSTNew_click (blows up with Method or Data member not found
error)

I realize that the last line of the above code does not work........this is
what I need replaced with a valid function.

Thanks for your help Alan.
Claire

"Alan Fisher" <anonymous@discussions.microsoft.com> wrote in message Private
Sub cboProgress_AfterUpdate()
> Dim lstGstNew As Variant
>
> Me.lstGstNew.Requery (correct result shows)
> Me.lstGstNew.SetFocus (goes to the list box)
> Me.lstGSTNew_click (blows up with Method or
Data member not found
>error)
news:79aa01c4314c$52366ab0$a401280a@phx.gbl...

>-----Original Message-----
>Hi:
>
>I'm having trouble getting my message across on this one.
Hopefully, third
>time lucky. Thanks to everyone that offered suggestions
previously, but I'm
>running out of time. I know I need to learn VBA
unfortunately, time is not
>on my side.
>
>I need some code that will make access click in a list
box for me, not go to
>the list box, not set the focus to the list box, but
physically click the
>list box. The list box is currently showing the expected
result, but in
>order for a recalculation to take place on another form,
you must physically
>click in the list box.
>
>I have tried many times, without success, to use _click
to make this happen.
>I know this should be really easy, but I am at my wits
end. All of my
>efforts end up with "Sub or Function not defined"
or "Method or Data member
>not found" errors.
>
>Could somebody that KNOWS, please help me out with this
one.
>
>Below is the portion of my code that I am having trouble
with:
>
>>
>A million thanks
>Claire
>
>
>It is not surprising that you are having trouble getting
a reply that helps. What you are trying to do is very
unconventional to say the least. Sorry if that sounds
critical it's just the way it is. If you have code
associated with the On Click event of the list box that is
doing what you want you should just copy it to where you
are trying to make the click event happen. That is the
line where you have Me.lstGSTNew_click (Which isn't a
valid operation) should be replaced with what ever event
you have in the On Click event of the list box. If you
have more specific requirements or information that could
help make your problem better understood, reply with it
and I will try and help more. Good Luck.
>.
>



Relevant Pages

  • Re: Out of Memory (Error 7) when adding a VBA function
    ... Thanks for the rapid response and comprehensive troubleshooting method. ... corrupted file through your methodology at first chance and will report back. ... Compact the database to get rid of this junk: ... trouble. ...
    (microsoft.public.access.formscoding)
  • Re: Looking for advice on how to get started
    ... least trouble) way is to put this into a database. ... be able to ruin the format of your data. ... Another matter is security. ...
    (comp.programming)
  • Re: Help with default fields...
    ... Trouble Call database list that is designed so our operation manager can add ... Trouble Call database to reference that list. ... since it is the only one that will let me edit the entry (In other words, ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: ms access 2003
    ... The database seemed to have run out of job numbers for 2009. ... Now playing with it in 2010, it seems to be working again but obviously ... I have a database that is based on MS access that I am having trouble ... I actually paid someone to create this for me but they refuse help ...
    (microsoft.public.access.tablesdbdesign)
  • RE: Pass Through Query Translation
    ... Year is not a valid function in the database that you are trying to use. ... Keith Bontrager - Bicycle Builder. ... "Kou Vang" wrote: ...
    (microsoft.public.access.queries)