Creating a command button from a form into a Access Web Page

carlaomi

New member
Local time
Today, 10:46
Joined
Feb 19, 2008
Messages
4
Hi I created a command button to calculate time taken on a form like below

Private Sub Command46_Click()
Time_Finished.Value = Time()
Time_Taken.Value = Time_Finished.Value - Time_Started.Value
Complete.Value = True


Could someone please tell me how to do this in a web page do I need to do it in Javascript if so how?

Thanks
 
If the web page is an .asp page, then you can use VB script. Therefore, it would be much like you have show the current code to be. When the page opens, capture the TimeStarted value. When the user clicks on the button you provide to consider the page finished, calculate the TimeTaken value.
BTW, IMHO the underscores (_) really slow down the data entry portion of coding, and really don't add to the readability of the variable name.
 
If the web page is an .asp page, then you can use VB script. Therefore, it would be much like you have show the current code to be. When the page opens, capture the TimeStarted value. When the user clicks on the button you provide to consider the page finished, calculate the TimeTaken value.
BTW, IMHO the underscores (_) really slow down the data entry portion of coding, and really don't add to the readability of the variable name.
I tried the below but doesn't have any effect

<SCRIPT language=vbscript event=onclick for=ActiveXCtl0>
TimeFinished = time ()
TimeTaken = TimeFinished - TimeStarted
</SCRIPT>
 
I think you really need an .ASP forum for help with the details of your situation. This being an Access forum is not where you will find many .ASP developers. Sorry.
 
I think you really need an .ASP forum for help with the details of your situation. This being an Access forum is not where you will find many .ASP developers. Sorry.
Its being put into the VB script editor in Access Data Access page is this still ASP?
 

Users who are viewing this thread

Back
Top Bottom