A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MsgBox How Meny records updated



 
 
Thread Tools Display Modes
  #1  
Old June 18th, 2007, 01:16 AM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 67
Default MsgBox How Meny records updated

how can I create A msg box should show how many records the run sql
cmd just updated I have the set warnings off

  #2  
Old June 18th, 2007, 02:00 AM posted to microsoft.public.access.forms
AccessVandal via AccessMonster.com
external usenet poster
 
Posts: 461
Default MsgBox How Meny records updated

Hi,


something like
"dim RA as Long"
"currentproject.Connection.Execute "Command String", RA"?

Can you show us the code?

wrote:
how can I create A msg box should show how many records the run sql
cmd just updated I have the set warnings off


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200706/1

  #4  
Old June 18th, 2007, 02:15 AM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 67
Default MsgBox How Meny records updated

On Jun 17, 9:00 pm, "ruralguy via AccessMonster.com" u12102@uwe
wrote:
Look into the RecordsAffected Property of a DAO Recordset.

wrote:
how can I create A msg box should show how many records the run sql
cmd just updated I have the set warnings off


--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200706/1


the code:

Private Sub Command3_Click()
DoCmd.SetWarnings False
DoCmd.RunSQL "update master set tag = true where tag = false"
DoCmd.SetWarnings True

  #5  
Old June 18th, 2007, 02:35 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default MsgBox How Meny records updated

See:
Action queries: suppressing dialogs, while knowing results
at:
http://allenbrowne.com/ser-60.html

The example shows how to execute the query and display the RecordsAffected
in the MsgBox.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

wrote in message
oups.com...
how can I create A msg box should show how many records the run sql
cmd just updated I have the set warnings off


  #8  
Old June 18th, 2007, 06:58 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 67
Default MsgBox How Meny records updated

On Jun 18, 1:38 pm, "A a r o n K e m p f" a a r o n . k e m p f @ g m
a i l . c o m wrote:
you need A c c e s s D a t a P r o j e c t s

wrote in message

oups.com...



how can I create A msg box should show how many records the run sql
cmd just updated I have the set warnings off- Hide quoted text -


- Show quoted text -


thanks ALL!!
it works now

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.