PC Review


Reply
Thread Tools Rate Thread

repeating a query

 
 
LUIS ANGEL
Guest
Posts: n/a
 
      31st Aug 2010
Hi Guys,

I have been looking around in many forums. I would like to make my
macro to run again after i have entered info and hit enter.

The thing is that I have an Append query and I would like for it to
repeat it self or ask again as soon as I hit enter.

The only way I have seen I can do this is just putting many
OPENQUERY's in the macro design.

Can anyone help me do this......

 
Reply With Quote
 
 
 
 
KLZA
Guest
Posts: n/a
 
      1st Sep 2010
On Aug 31, 4:54*pm, LUIS ANGEL <upslavazq...@gmail.com> wrote:
> Hi Guys,
>
> I have been looking around in many forums. I would like to make my
> macro to run again after i have entered info and hit enter.
>
> The thing is that I have an Append query and I would like for it to
> repeat it self *or ask again as soon as I hit enter.
>
> The only way I have seen I can do this is just putting many
> OPENQUERY's in the macro design.
>
> Can anyone help me do this......


Use the "lost focus" event in the field you're hitting enter on and
set it to your macro...
 
Reply With Quote
 
 
 
 
KLZA
Guest
Posts: n/a
 
      1st Sep 2010
On Aug 31, 4:54*pm, LUIS ANGEL <upslavazq...@gmail.com> wrote:
> Hi Guys,
>
> I have been looking around in many forums. I would like to make my
> macro to run again after i have entered info and hit enter.
>
> The thing is that I have an Append query and I would like for it to
> repeat it self *or ask again as soon as I hit enter.
>
> The only way I have seen I can do this is just putting many
> OPENQUERY's in the macro design.
>
> Can anyone help me do this......


You can trap the enter key behavior. Set this to your on keypress to
trap the enter key behavior...

If KeyAscii = vbKeyReturn Then
KeyAscii = 0
docmd.runmacro "MyMacro"
End If
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter Query keeps repeating itself... Gary Smith Microsoft Access Queries 2 6th Aug 2004 07:50 PM
Suppressing Repeating Values in Query Dibs Microsoft Access Queries 2 13th Nov 2003 09:49 AM
Sum up repeating records from a query KLAU Microsoft Access Queries 1 21st Aug 2003 05:31 PM
Re: Parameter query repeating itself Gary Smith Microsoft Access Queries 11 20th Aug 2003 08:27 PM
Repeating a prompt for criteria in a query Mike Microsoft Access Queries 0 11th Aug 2003 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.