UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Refresh Button    
 
   
Darkenmoor
post Mar 3 2012, 10:57 AM
Post #1

UtterAccess Member
Posts: 27



I added a refresh button to an ADP form. Every time I click the button, it takes me to the first record in the table. Is there a way to refresh and stay in the record currently being viewed?
Thanks for your help.
David
Go to the top of the page
 
+
arnelgp
post Mar 3 2012, 11:24 AM
Post #2

UtterAccess Ruler
Posts: 1,090



Refresh through ribbon button, no way, unless customized ribbon and can be done through VBA.
Go to the top of the page
 
+
Darkenmoor
post Mar 3 2012, 11:28 AM
Post #3

UtterAccess Member
Posts: 27



What would the code be if done through VBA?
Go to the top of the page
 
+
arnelgp
post Mar 3 2012, 11:43 AM
Post #4

UtterAccess Ruler
Posts: 1,090



These are the steps:
1. Save the PKId of the current record in view in a variable, Tempvars perhaps.
2. Refresh the form.
3. Goto, seek, find the the PKId you save in step 1.
Go to the top of the page
 
+
projecttoday
post Mar 3 2012, 03:42 PM
Post #5

UtterAccess VIP
Posts: 5,115
From: Dunbar, WV



What are you refreshing? You could open the form with only 1 record.
Go to the top of the page
 
+
Darkenmoor
post Mar 4 2012, 01:20 PM
Post #6

UtterAccess Member
Posts: 27



Thanks for your response. I have added the refresh button so others on the network can see the changes whithout closing the form or going to another record. When the refresh button is clicked, the data re-posts to SQL Server and others are able to see the updates.
For instance, when a CSR enters an order for paper, the paper purchasing agent needs to see the information at her desk. I'd like for the CSR to be able to click the refresh button without the form reverting back to the first record on their list. Some CSRs have as many as 50 records active on the query, so if the refresh button is used, the view reverts back to the first record on their list.
Hope you can help with being able to show me code that works.
Thanks in advance.
David
Go to the top of the page
 
+
projecttoday
post Mar 5 2012, 12:16 AM
Post #7

UtterAccess VIP
Posts: 5,115
From: Dunbar, WV



Is the paper purchasing agent another person form the CSR? If so, there should be a refresh button on that list.
Go to the top of the page
 
+
arnelgp
post Mar 5 2012, 09:34 AM
Post #8

UtterAccess Ruler
Posts: 1,090



This is what I meant on my first post, disregard if this is not what you want
Attached File(s)
Attached File  Database2.zip ( 27.09K ) Number of downloads: 11
 
Go to the top of the page
 
+
Darkenmoor
post May 17 2012, 07:47 AM
Post #9

UtterAccess Member
Posts: 27



this worked. thanks!
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 06:53 PM