Presumably the Function WorkbookIsOpen(wbname) is not on the spreadsheet being tested by the Sub cmdNewBusCon_Click(). This being the case, I would not expect the Function WorkbookIsOpen(wbname) to be private
This is the full page script that I use:....
============================================================
<%@Language='vbscript'%>
<% Option Explicit %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta...
Hi James,
I assume that your web server is configured for ASP?
I'm using IIS5 (it also works on IIS4) and the code is hand-written in Front Page 2000. It is a standard ASP page written in VBScript. I use it all of the time to test connections.
I hope that this helps.
David
PHV and Digga have the best answer.
<%= Request.ServerVariables("LOGON_USER") %>
I have been using this for years and it never fails. Excellent for adding security and identifying users
The short answer is:
request.servervariables("LOGON_USER")
If you put the following on an ASP page you will get a list of all variables and their values:
<h2>Request Server Variables List</h2>
<%
Dim V
response.Write "<Table>"
For Each V in Request.ServerVariables...
Try
If Me.Verificationbox.Value = -1 Then
If MsgBox("Already printed!" & chr(10) & "Do you want to print again?")=vbYes then
DoCmd.OpenReport ReportName, acViewNormal
End If
Else
DoCmd.OpenReport ReportName, acPreview
End If
set the datasource of the list box as a query in the table that the text box reads/posts. Set grouping so that you only get one of each item and don't forget to requery the form in the "oncurrent" event.
If you put the VBA coding that I have suggested in the on activate event, the form will maximise whenever it becomes active, i.e whenever anyone looks at it. This will resolve your problem of resizing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.