I'm not really sure how these recordsets work either, but it seems to be depend on the property settings for the Recordset and Command objects before you open the RS - for instance opening a Client-side Keyset recordset with Optimistic locking always seems to allow me to get the correct...
You could use Me.ActiveControl, which returns a reference to the active control on a form, funnily enough.
You can see if its a text box by doing something like
If TypeName(Me.ActiveControl) = "TextBox" Then
Me.ActiveControl.Top = ...
or
If Left(LCase(Me.ActiveControl.Name), 3)...
Also bear the WeekdayName() function in mind, which returns the actual day name string.
Make sure you've got the FirstDayOfWeek parameter set properly though.
Yes it is perfectly do-able, I have done this many times before! See below...
<%@ Language=VBScript %>
<%
Dim s, sTextFile
'create file-system-object
Set fs = Server.CreateObject("Scripting.FileSystemObject")
sTextFile = "testfile.txt"
'create text file
Set ts =...
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.