From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] [AccessD] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 03:17:17 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 09:17:17 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <00c101c33fa9$346fc930$c86da8c0@D8TZHN0J> Hello Richard, I do not know what SysCmd(acSysCmdAccessDir does, but the following may help, Also, are you aware of the app.path command ? HTH, Mark Breen Ireland strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length of the file name Do Until Len(strFile) = 0 ' Call a stored procedure to insert the filename and client name into the table strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & strFile & "' " 'We will need this recordset to get the data from the database Dim rstFileName As New ADODB.Recordset 'now set up the recordset rstFileName.CursorLocation = adUseClient rstFileName.CursorType = adOpenStatic rstFileName.LockType = adLockBatchOptimistic rstFileName.Open strSQL, gccnn, , , adCmdText 'Get the next file strFile = Dir$ Loop 'Len(strFile) > 0 ----- Original Message ----- From: "Griffiths, Richard" To: ; Sent: Tuesday, July 01, 2003 8:59 AM Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > > Thanks > > Richard > Manchester, UK > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From R.Griffiths at bury.gov.uk Tue Jul 1 03:22:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 09:22:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Mark SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is installed Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 09:17 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > help, > > Also, are you aware of the app.path command ? > > HTH, > > Mark Breen > Ireland > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > of the file name > Do Until Len(strFile) = 0 > ' Call a stored procedure to insert the filename and client > name into the table > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > strFile & "' " > > 'We will need this recordset to get the data from the > database > Dim rstFileName As New ADODB.Recordset > > 'now set up the recordset > rstFileName.CursorLocation = adUseClient > rstFileName.CursorType = adOpenStatic > rstFileName.LockType = adLockBatchOptimistic > rstFileName.Open strSQL, gccnn, , , adCmdText > 'Get the next file > strFile = Dir$ > Loop 'Len(strFile) > 0 > > ----- Original Message ----- > From: "Griffiths, Richard" > To: ; > Sent: Tuesday, July 01, 2003 8:59 AM > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hi > > > > Does anyone have the equivalent code snipet to get the same > functionality > as > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > Thanks > > > > Richard > > Manchester, UK > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] [AccessD] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 08:16:26 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 14:16:26 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Message-ID: <00ff01c33fd3$010f11c0$c86da8c0@D8TZHN0J> Hello Richard, In that case, App.Path is what you need. Did it work for you? Mark ----- Original Message ----- From: "Griffiths, Richard" To: "'Mark L. Breen'" ; Sent: Tuesday, July 01, 2003 9:22 AM Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Mark > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is > installed > Richard > > > -----Original Message----- > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > Sent: 01 July 2003 09:17 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hello Richard, > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > > help, > > > > Also, are you aware of the app.path command ? > > > > HTH, > > > > Mark Breen > > Ireland > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > > of the file name > > Do Until Len(strFile) = 0 > > ' Call a stored procedure to insert the filename and client > > name into the table > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > > strFile & "' " > > > > 'We will need this recordset to get the data from the > > database > > Dim rstFileName As New ADODB.Recordset > > > > 'now set up the recordset > > rstFileName.CursorLocation = adUseClient > > rstFileName.CursorType = adOpenStatic > > rstFileName.LockType = adLockBatchOptimistic > > rstFileName.Open strSQL, gccnn, , , adCmdText > > 'Get the next file > > strFile = Dir$ > > Loop 'Len(strFile) > 0 > > > > ----- Original Message ----- > > From: "Griffiths, Richard" > > To: ; > > Sent: Tuesday, July 01, 2003 8:59 AM > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > Hi > > > > > > Does anyone have the equivalent code snipet to get the same > > functionality > > as > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > Thanks > > > > > > Richard > > > Manchester, UK > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From R.Griffiths at bury.gov.uk Tue Jul 1 08:29:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 14:29:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1DF@MAILGATE.bury.gov.uk> Hi app.path will return the path to the MyApp.exe folder not MS Access.exe Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 14:16 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > In that case, App.Path is what you need. > > Did it work for you? > > Mark > > ----- Original Message ----- > From: "Griffiths, Richard" > To: "'Mark L. Breen'" ; > > Sent: Tuesday, July 01, 2003 9:22 AM > Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Mark > > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe > is > > installed > > Richard > > > > > -----Original Message----- > > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > > Sent: 01 July 2003 09:17 > > > To: dba-vb at databaseadvisors.com > > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > Hello Richard, > > > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following > may > > > help, > > > > > > Also, are you aware of the app.path command ? > > > > > > HTH, > > > > > > Mark Breen > > > Ireland > > > > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the > length > > > of the file name > > > Do Until Len(strFile) = 0 > > > ' Call a stored procedure to insert the filename and > client > > > name into the table > > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" > & > > > strFile & "' " > > > > > > 'We will need this recordset to get the data from the > > > database > > > Dim rstFileName As New ADODB.Recordset > > > > > > 'now set up the recordset > > > rstFileName.CursorLocation = adUseClient > > > rstFileName.CursorType = adOpenStatic > > > rstFileName.LockType = adLockBatchOptimistic > > > rstFileName.Open strSQL, gccnn, , , adCmdText > > > 'Get the next file > > > strFile = Dir$ > > > Loop 'Len(strFile) > 0 > > > > > > ----- Original Message ----- > > > From: "Griffiths, Richard" > > > To: ; > > > Sent: Tuesday, July 01, 2003 8:59 AM > > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > > > > Hi > > > > > > > > Does anyone have the equivalent code snipet to get the same > > > functionality > > > as > > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > > > Thanks > > > > > > > > Richard > > > > Manchester, UK > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Jdemarco at hshhp.org Tue Jul 1 10:13:59 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 1 Jul 2003 11:13:59 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> List, I'm been having a bit of a time getting a component that sends mail from a web form to work. It's dll based and works on other sites of ours. My boss suggested I ping the server to see if the SMTP port (25) is open (I haven't gotten a straight answer from our hardware staff). Can anyone tell me how to do so? Thanks, Jim DeMarco *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From stuart at lexacorp.com.pg Tue Jul 1 17:29:36 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 08:29:36 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F0297F0.19532.2DC50B@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:02:48 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:02:48 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F029FB8.30871.4C2850@localhost> >If you get a valid response to the Ping, try telnetting into the >Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or >whatever. That second option should of course be "TELNET 10.10.10.1 25" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:07:59 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:07:59 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F02A0EF.4181.50E92E@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] [AccessD] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Wed Jul 2 04:34:23 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Wed, 2 Jul 2003 10:34:23 +0100 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE References: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> Message-ID: <009c01c3407d$2b171ad0$c86da8c0@D8TZHN0J> Hello Paul, I think that the multiple step message is what VB sends us when SQL sends it an error. IE, VB does not try to accurately interpet the SQL error message. What I sometimes do when I have this problem is do the work in the table view or in QA, BTW, do you use VID for you DB design and building work? I think that you may have No Nulls set for the numeric, that may explain why it does not let you save a blank Let us know Mark ----- Original Message ----- From: To: ; Sent: Wednesday, July 02, 2003 10:14 AM Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE > To all, > > I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : > > Multiple-step operation generated errors. Check each status value. > > Anyone have any ideas on why this happens ? > > Paul > > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Jdemarco at hshhp.org Wed Jul 2 06:47:39 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 2 Jul 2003 07:47:39 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F022@TTNEXCHSRV1.hshhp.com> Thanks Stuart, I found a 30 day trial of an app called P-Ping that lets me query a specific port as well as check an IP for what services are available on it (www.29soft.com). Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, July 01, 2003 6:30 PM To: Jim DeMarco; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Ping server port On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From nilslenz at 3oaks.com Fri Jul 4 04:13:04 2003 From: nilslenz at 3oaks.com (Lenz, Nils) Date: Fri, 4 Jul 2003 05:13:04 -0400 Subject: [dba-VB] automated response Message-ID: <10307040513.AA14591607@3oaks.com> I will be on vacation from July 3rd and returning around the 20th. Because of e-mail storage limitations I may or may not receive your e-mail. Otherwise resend after I return. Thanks, Nils From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] [AccessD] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] [AccessD] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Fri Jul 4 08:52:31 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 4 Jul 2003 09:52:31 -0400 Subject: [dba-VB] Send Email Automatically VB6 In-Reply-To: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> Message-ID: <002e01c34233$87673880$5e310cd8@hargrove.internal> Working with the Outlook object model would be the easiest. The only problem with it is that when Microsoft tightened the Security on Outlook they added message boxes to alert the user when another program was trying to send a message through Outlook. To get around the Outlook Security patch issues, you have 2 choices: 1. Redemption (http://www.dimastr.com/redemption/) 2. MAPI/CDO code You can get more information on your options by looking at the following sites... Slipstick Systems Outlook and Exchange Solutions Center http://www.slipstick.com/ Outlook CDO Knowledge Base http://www.microeye.com/resources/res_outlkb.htm CDO Live http://www.cdolive.com/cdo5.htm Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, July 04, 2003 5:18 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Send Email Automatically VB6 To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Thu Jul 10 14:58:13 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 10 Jul 2003 15:58:13 -0400 Subject: [dba-VB] VB6 NT Service with task tray interaction. Message-ID: <806536912C472E4A9D6515DF2E57261E239415@mercury.tnco-inc.com> Hello All, I am looking for information on how to make a VB6 application that will be run as an NT service AND interacted with by a task tray icon. I have never done this before so please don't assume any previous knowledge about doing this. :) I already got my hands on NTSVC.OCX. I don't know if this is all I need to get the app to run as a service, but that was the impression that I got. Can anyone help get me started? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] [AccessD] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 12 13:57:01 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 12 Jul 2003 14:57:01 -0400 Subject: [dba-VB] Visual Studio Magazine Premier Membership In-Reply-To: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Message-ID: <015e01c348a7$6098a2a0$8e01a8c0@Rock> Since I have been jobless for 3+months, among other things my VS membership expired. There is an article available to Premier members only for which I would love the source. If you are a member and willing to help, e me off-list and I'll tell you the article ID etc. Arthur From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] [AccessD] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Mon Jul 14 08:27:12 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Mon, 14 Jul 2003 09:27:12 -0400 Subject: [dba-VB] OT: VBA.NET Null In-Reply-To: Message-ID: <001801c34a0b$a62f76d0$df320cd8@hargrove.internal> You have to use NOTHING instead of NULL. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jcolby at colbyconsulting.com Sent: Monday, July 14, 2003 8:31 AM To: VBA; AccessD Subject: [dba-VB] OT: VBA.NET Null I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] [AccessD] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From GRAY at utah.gov Tue Jul 15 14:09:47 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 15 Jul 2003 13:09:47 -0600 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 15 14:45:49 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Tue, 15 Jul 2003 15:45:49 -0400 Subject: [dba-VB] OT: VB.Net - general questions In-Reply-To: Message-ID: Thanks, I'll read it. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Tuesday, July 15, 2003 3:10 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: VB.Net - general questions John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] [AccessD] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 19 12:38:10 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 19 Jul 2003 13:38:10 -0400 Subject: [dba-VB] TreeView sample in .NET problems In-Reply-To: Message-ID: <000c01c34e1c$85f51c70$8e01a8c0@Rock> Before posting a bunch of code and risking rejection due to size, has anyone played with Treeview in .NET? I'm working up a sample that dies on a particular line and after a couple of hours staring at it, I cannot deduce the problem. AFAIK it should work. I'll try an abbreviated version, below. If this is not enough, and you are interested in the problem, e me off-list and I'll send you a zip. Scenario: Two classes, Customer and Order, the former containing a collection of Order objects. There is no database, I manufacture the instances in loops. I populate the base level with a node for each of 1000 customers, then I walk the nodes and add some orders to each customerOrders collection. Here are the classes: Public Class Customer Public CustomerID As String Public CustomerName As String Public CustomerOrders As Collection Sub New(ByVal ID As String) Me.CustomerID = ID End Sub End Class Public Class Order Public OrderID As String Sub New(ByVal ID As String) Me.OrderID = ID End Sub End Class Assume that a loop correctly builds 1000 customer nodes. There's an arrayList that is used to fill the customer node level and then I attempt to walk it like so: ' Add orders to each Customer object in the ArrayList. Dim customer1 As Customer For Each customer1 In customerArray Dim y As Integer For y = 0 To 14 customer1.CustomerOrders.Add(New Order("Order" + y.ToString())) Next y Next customer1 The line that chokes is the innermost, where I try to add a new order. Given the class declaration above, I can't see why it doesn't work. Any suggestions? TIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:07:33 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:07:33 -0400 Subject: [dba-VB] OT: ASP.net not working Message-ID: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Message-ID: <001701c35192$d2da9000$6401a8c0@cx321705b> I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:28:36 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:28:36 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <001701c35192$d2da9000$6401a8c0@cx321705b> Message-ID: The file does have a .aspx extension. How do I tell if ASP.Net is correctly installed? How do I tell if IIS is able to use it? IOW, apparently a browser just ignores anything it doesn't understand so maybe the .net stuff isn't being processed at the server. It is supposed to use VB.net for all of the functions and stuff. I don't see a label or control that is the time control on the web page. Of course maybe I won't if nothing is displayed in it. Oh the joys of learning all new (very complex) stuff. It is probably something simple like something didn't install properly. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Wednesday, July 23, 2003 11:23 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com From larry at lwoods.com Wed Jul 23 23:36:44 2003 From: larry at lwoods.com (Larry Woods) Date: Wed, 23 Jul 2003 21:36:44 -0700 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: <000301c3519d$2f775190$6401a8c0@cx321705b> Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 07:53:58 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 08:53:58 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <000301c3519d$2f775190$6401a8c0@cx321705b> Message-ID: No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [AccessD] RE: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From GRAY at utah.gov Fri Jul 25 11:47:46 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 10:47:46 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Fri Jul 25 12:11:48 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Fri, 25 Jul 2003 13:11:48 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From GRAY at utah.gov Fri Jul 25 14:05:20 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 13:05:20 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: Well, I'll have to remember that one. I am ususally in that config screen to delete extentions, adding is a pain, so anything that adds this automatically will be a big help. Gary >>> jcolby at colbyconsulting.com 07/25/03 11:11AM >>> Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Jul 31 13:07:17 2003 From: pharold at proftesting.com (Perry Harold) Date: Thu, 31 Jul 2003 14:07:17 -0400 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 In-Reply-To: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> Message-ID: <004a01c3578e$93c9e300$082da8c0@D58BT131> You might set it programmatically with the printers collection PrinterX.Orientation=vbPRORLandscape Then set it as the default printer Or use the inputbox to choose a printer and set the properties of the printer as it is chosen. Either one before using the PrintForm method. Perry Harold -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, July 31, 2003 9:52 AM To: dba-vb at databaseadvisors.com Cc: accessd at databaseadvisors.com Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] [AccessD] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 03:17:17 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 09:17:17 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <00c101c33fa9$346fc930$c86da8c0@D8TZHN0J> Hello Richard, I do not know what SysCmd(acSysCmdAccessDir does, but the following may help, Also, are you aware of the app.path command ? HTH, Mark Breen Ireland strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length of the file name Do Until Len(strFile) = 0 ' Call a stored procedure to insert the filename and client name into the table strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & strFile & "' " 'We will need this recordset to get the data from the database Dim rstFileName As New ADODB.Recordset 'now set up the recordset rstFileName.CursorLocation = adUseClient rstFileName.CursorType = adOpenStatic rstFileName.LockType = adLockBatchOptimistic rstFileName.Open strSQL, gccnn, , , adCmdText 'Get the next file strFile = Dir$ Loop 'Len(strFile) > 0 ----- Original Message ----- From: "Griffiths, Richard" To: ; Sent: Tuesday, July 01, 2003 8:59 AM Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > > Thanks > > Richard > Manchester, UK > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From R.Griffiths at bury.gov.uk Tue Jul 1 03:22:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 09:22:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Mark SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is installed Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 09:17 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > help, > > Also, are you aware of the app.path command ? > > HTH, > > Mark Breen > Ireland > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > of the file name > Do Until Len(strFile) = 0 > ' Call a stored procedure to insert the filename and client > name into the table > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > strFile & "' " > > 'We will need this recordset to get the data from the > database > Dim rstFileName As New ADODB.Recordset > > 'now set up the recordset > rstFileName.CursorLocation = adUseClient > rstFileName.CursorType = adOpenStatic > rstFileName.LockType = adLockBatchOptimistic > rstFileName.Open strSQL, gccnn, , , adCmdText > 'Get the next file > strFile = Dir$ > Loop 'Len(strFile) > 0 > > ----- Original Message ----- > From: "Griffiths, Richard" > To: ; > Sent: Tuesday, July 01, 2003 8:59 AM > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hi > > > > Does anyone have the equivalent code snipet to get the same > functionality > as > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > Thanks > > > > Richard > > Manchester, UK > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] [AccessD] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 08:16:26 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 14:16:26 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Message-ID: <00ff01c33fd3$010f11c0$c86da8c0@D8TZHN0J> Hello Richard, In that case, App.Path is what you need. Did it work for you? Mark ----- Original Message ----- From: "Griffiths, Richard" To: "'Mark L. Breen'" ; Sent: Tuesday, July 01, 2003 9:22 AM Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Mark > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is > installed > Richard > > > -----Original Message----- > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > Sent: 01 July 2003 09:17 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hello Richard, > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > > help, > > > > Also, are you aware of the app.path command ? > > > > HTH, > > > > Mark Breen > > Ireland > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > > of the file name > > Do Until Len(strFile) = 0 > > ' Call a stored procedure to insert the filename and client > > name into the table > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > > strFile & "' " > > > > 'We will need this recordset to get the data from the > > database > > Dim rstFileName As New ADODB.Recordset > > > > 'now set up the recordset > > rstFileName.CursorLocation = adUseClient > > rstFileName.CursorType = adOpenStatic > > rstFileName.LockType = adLockBatchOptimistic > > rstFileName.Open strSQL, gccnn, , , adCmdText > > 'Get the next file > > strFile = Dir$ > > Loop 'Len(strFile) > 0 > > > > ----- Original Message ----- > > From: "Griffiths, Richard" > > To: ; > > Sent: Tuesday, July 01, 2003 8:59 AM > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > Hi > > > > > > Does anyone have the equivalent code snipet to get the same > > functionality > > as > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > Thanks > > > > > > Richard > > > Manchester, UK > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From R.Griffiths at bury.gov.uk Tue Jul 1 08:29:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 14:29:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1DF@MAILGATE.bury.gov.uk> Hi app.path will return the path to the MyApp.exe folder not MS Access.exe Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 14:16 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > In that case, App.Path is what you need. > > Did it work for you? > > Mark > > ----- Original Message ----- > From: "Griffiths, Richard" > To: "'Mark L. Breen'" ; > > Sent: Tuesday, July 01, 2003 9:22 AM > Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Mark > > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe > is > > installed > > Richard > > > > > -----Original Message----- > > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > > Sent: 01 July 2003 09:17 > > > To: dba-vb at databaseadvisors.com > > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > Hello Richard, > > > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following > may > > > help, > > > > > > Also, are you aware of the app.path command ? > > > > > > HTH, > > > > > > Mark Breen > > > Ireland > > > > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the > length > > > of the file name > > > Do Until Len(strFile) = 0 > > > ' Call a stored procedure to insert the filename and > client > > > name into the table > > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" > & > > > strFile & "' " > > > > > > 'We will need this recordset to get the data from the > > > database > > > Dim rstFileName As New ADODB.Recordset > > > > > > 'now set up the recordset > > > rstFileName.CursorLocation = adUseClient > > > rstFileName.CursorType = adOpenStatic > > > rstFileName.LockType = adLockBatchOptimistic > > > rstFileName.Open strSQL, gccnn, , , adCmdText > > > 'Get the next file > > > strFile = Dir$ > > > Loop 'Len(strFile) > 0 > > > > > > ----- Original Message ----- > > > From: "Griffiths, Richard" > > > To: ; > > > Sent: Tuesday, July 01, 2003 8:59 AM > > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > > > > Hi > > > > > > > > Does anyone have the equivalent code snipet to get the same > > > functionality > > > as > > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > > > Thanks > > > > > > > > Richard > > > > Manchester, UK > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Jdemarco at hshhp.org Tue Jul 1 10:13:59 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 1 Jul 2003 11:13:59 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> List, I'm been having a bit of a time getting a component that sends mail from a web form to work. It's dll based and works on other sites of ours. My boss suggested I ping the server to see if the SMTP port (25) is open (I haven't gotten a straight answer from our hardware staff). Can anyone tell me how to do so? Thanks, Jim DeMarco *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From stuart at lexacorp.com.pg Tue Jul 1 17:29:36 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 08:29:36 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F0297F0.19532.2DC50B@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:02:48 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:02:48 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F029FB8.30871.4C2850@localhost> >If you get a valid response to the Ping, try telnetting into the >Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or >whatever. That second option should of course be "TELNET 10.10.10.1 25" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:07:59 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:07:59 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F02A0EF.4181.50E92E@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] [AccessD] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Wed Jul 2 04:34:23 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Wed, 2 Jul 2003 10:34:23 +0100 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE References: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> Message-ID: <009c01c3407d$2b171ad0$c86da8c0@D8TZHN0J> Hello Paul, I think that the multiple step message is what VB sends us when SQL sends it an error. IE, VB does not try to accurately interpet the SQL error message. What I sometimes do when I have this problem is do the work in the table view or in QA, BTW, do you use VID for you DB design and building work? I think that you may have No Nulls set for the numeric, that may explain why it does not let you save a blank Let us know Mark ----- Original Message ----- From: To: ; Sent: Wednesday, July 02, 2003 10:14 AM Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE > To all, > > I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : > > Multiple-step operation generated errors. Check each status value. > > Anyone have any ideas on why this happens ? > > Paul > > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Jdemarco at hshhp.org Wed Jul 2 06:47:39 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 2 Jul 2003 07:47:39 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F022@TTNEXCHSRV1.hshhp.com> Thanks Stuart, I found a 30 day trial of an app called P-Ping that lets me query a specific port as well as check an IP for what services are available on it (www.29soft.com). Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, July 01, 2003 6:30 PM To: Jim DeMarco; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Ping server port On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From nilslenz at 3oaks.com Fri Jul 4 04:13:04 2003 From: nilslenz at 3oaks.com (Lenz, Nils) Date: Fri, 4 Jul 2003 05:13:04 -0400 Subject: [dba-VB] automated response Message-ID: <10307040513.AA14591607@3oaks.com> I will be on vacation from July 3rd and returning around the 20th. Because of e-mail storage limitations I may or may not receive your e-mail. Otherwise resend after I return. Thanks, Nils From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] [AccessD] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] [AccessD] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Fri Jul 4 08:52:31 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 4 Jul 2003 09:52:31 -0400 Subject: [dba-VB] Send Email Automatically VB6 In-Reply-To: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> Message-ID: <002e01c34233$87673880$5e310cd8@hargrove.internal> Working with the Outlook object model would be the easiest. The only problem with it is that when Microsoft tightened the Security on Outlook they added message boxes to alert the user when another program was trying to send a message through Outlook. To get around the Outlook Security patch issues, you have 2 choices: 1. Redemption (http://www.dimastr.com/redemption/) 2. MAPI/CDO code You can get more information on your options by looking at the following sites... Slipstick Systems Outlook and Exchange Solutions Center http://www.slipstick.com/ Outlook CDO Knowledge Base http://www.microeye.com/resources/res_outlkb.htm CDO Live http://www.cdolive.com/cdo5.htm Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, July 04, 2003 5:18 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Send Email Automatically VB6 To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Thu Jul 10 14:58:13 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 10 Jul 2003 15:58:13 -0400 Subject: [dba-VB] VB6 NT Service with task tray interaction. Message-ID: <806536912C472E4A9D6515DF2E57261E239415@mercury.tnco-inc.com> Hello All, I am looking for information on how to make a VB6 application that will be run as an NT service AND interacted with by a task tray icon. I have never done this before so please don't assume any previous knowledge about doing this. :) I already got my hands on NTSVC.OCX. I don't know if this is all I need to get the app to run as a service, but that was the impression that I got. Can anyone help get me started? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] [AccessD] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 12 13:57:01 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 12 Jul 2003 14:57:01 -0400 Subject: [dba-VB] Visual Studio Magazine Premier Membership In-Reply-To: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Message-ID: <015e01c348a7$6098a2a0$8e01a8c0@Rock> Since I have been jobless for 3+months, among other things my VS membership expired. There is an article available to Premier members only for which I would love the source. If you are a member and willing to help, e me off-list and I'll tell you the article ID etc. Arthur From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] [AccessD] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Mon Jul 14 08:27:12 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Mon, 14 Jul 2003 09:27:12 -0400 Subject: [dba-VB] OT: VBA.NET Null In-Reply-To: Message-ID: <001801c34a0b$a62f76d0$df320cd8@hargrove.internal> You have to use NOTHING instead of NULL. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jcolby at colbyconsulting.com Sent: Monday, July 14, 2003 8:31 AM To: VBA; AccessD Subject: [dba-VB] OT: VBA.NET Null I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] [AccessD] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From GRAY at utah.gov Tue Jul 15 14:09:47 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 15 Jul 2003 13:09:47 -0600 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 15 14:45:49 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Tue, 15 Jul 2003 15:45:49 -0400 Subject: [dba-VB] OT: VB.Net - general questions In-Reply-To: Message-ID: Thanks, I'll read it. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Tuesday, July 15, 2003 3:10 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: VB.Net - general questions John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] [AccessD] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 19 12:38:10 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 19 Jul 2003 13:38:10 -0400 Subject: [dba-VB] TreeView sample in .NET problems In-Reply-To: Message-ID: <000c01c34e1c$85f51c70$8e01a8c0@Rock> Before posting a bunch of code and risking rejection due to size, has anyone played with Treeview in .NET? I'm working up a sample that dies on a particular line and after a couple of hours staring at it, I cannot deduce the problem. AFAIK it should work. I'll try an abbreviated version, below. If this is not enough, and you are interested in the problem, e me off-list and I'll send you a zip. Scenario: Two classes, Customer and Order, the former containing a collection of Order objects. There is no database, I manufacture the instances in loops. I populate the base level with a node for each of 1000 customers, then I walk the nodes and add some orders to each customerOrders collection. Here are the classes: Public Class Customer Public CustomerID As String Public CustomerName As String Public CustomerOrders As Collection Sub New(ByVal ID As String) Me.CustomerID = ID End Sub End Class Public Class Order Public OrderID As String Sub New(ByVal ID As String) Me.OrderID = ID End Sub End Class Assume that a loop correctly builds 1000 customer nodes. There's an arrayList that is used to fill the customer node level and then I attempt to walk it like so: ' Add orders to each Customer object in the ArrayList. Dim customer1 As Customer For Each customer1 In customerArray Dim y As Integer For y = 0 To 14 customer1.CustomerOrders.Add(New Order("Order" + y.ToString())) Next y Next customer1 The line that chokes is the innermost, where I try to add a new order. Given the class declaration above, I can't see why it doesn't work. Any suggestions? TIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:07:33 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:07:33 -0400 Subject: [dba-VB] OT: ASP.net not working Message-ID: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Message-ID: <001701c35192$d2da9000$6401a8c0@cx321705b> I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:28:36 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:28:36 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <001701c35192$d2da9000$6401a8c0@cx321705b> Message-ID: The file does have a .aspx extension. How do I tell if ASP.Net is correctly installed? How do I tell if IIS is able to use it? IOW, apparently a browser just ignores anything it doesn't understand so maybe the .net stuff isn't being processed at the server. It is supposed to use VB.net for all of the functions and stuff. I don't see a label or control that is the time control on the web page. Of course maybe I won't if nothing is displayed in it. Oh the joys of learning all new (very complex) stuff. It is probably something simple like something didn't install properly. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Wednesday, July 23, 2003 11:23 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com From larry at lwoods.com Wed Jul 23 23:36:44 2003 From: larry at lwoods.com (Larry Woods) Date: Wed, 23 Jul 2003 21:36:44 -0700 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: <000301c3519d$2f775190$6401a8c0@cx321705b> Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 07:53:58 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 08:53:58 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <000301c3519d$2f775190$6401a8c0@cx321705b> Message-ID: No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [AccessD] RE: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From GRAY at utah.gov Fri Jul 25 11:47:46 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 10:47:46 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Fri Jul 25 12:11:48 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Fri, 25 Jul 2003 13:11:48 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From GRAY at utah.gov Fri Jul 25 14:05:20 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 13:05:20 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: Well, I'll have to remember that one. I am ususally in that config screen to delete extentions, adding is a pain, so anything that adds this automatically will be a big help. Gary >>> jcolby at colbyconsulting.com 07/25/03 11:11AM >>> Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Jul 31 13:07:17 2003 From: pharold at proftesting.com (Perry Harold) Date: Thu, 31 Jul 2003 14:07:17 -0400 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 In-Reply-To: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> Message-ID: <004a01c3578e$93c9e300$082da8c0@D58BT131> You might set it programmatically with the printers collection PrinterX.Orientation=vbPRORLandscape Then set it as the default printer Or use the inputbox to choose a printer and set the properties of the printer as it is chosen. Either one before using the PrintForm method. Perry Harold -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, July 31, 2003 9:52 AM To: dba-vb at databaseadvisors.com Cc: accessd at databaseadvisors.com Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] [AccessD] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 03:17:17 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 09:17:17 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <00c101c33fa9$346fc930$c86da8c0@D8TZHN0J> Hello Richard, I do not know what SysCmd(acSysCmdAccessDir does, but the following may help, Also, are you aware of the app.path command ? HTH, Mark Breen Ireland strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length of the file name Do Until Len(strFile) = 0 ' Call a stored procedure to insert the filename and client name into the table strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & strFile & "' " 'We will need this recordset to get the data from the database Dim rstFileName As New ADODB.Recordset 'now set up the recordset rstFileName.CursorLocation = adUseClient rstFileName.CursorType = adOpenStatic rstFileName.LockType = adLockBatchOptimistic rstFileName.Open strSQL, gccnn, , , adCmdText 'Get the next file strFile = Dir$ Loop 'Len(strFile) > 0 ----- Original Message ----- From: "Griffiths, Richard" To: ; Sent: Tuesday, July 01, 2003 8:59 AM Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > > Thanks > > Richard > Manchester, UK > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From R.Griffiths at bury.gov.uk Tue Jul 1 03:22:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 09:22:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Mark SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is installed Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 09:17 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > help, > > Also, are you aware of the app.path command ? > > HTH, > > Mark Breen > Ireland > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > of the file name > Do Until Len(strFile) = 0 > ' Call a stored procedure to insert the filename and client > name into the table > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > strFile & "' " > > 'We will need this recordset to get the data from the > database > Dim rstFileName As New ADODB.Recordset > > 'now set up the recordset > rstFileName.CursorLocation = adUseClient > rstFileName.CursorType = adOpenStatic > rstFileName.LockType = adLockBatchOptimistic > rstFileName.Open strSQL, gccnn, , , adCmdText > 'Get the next file > strFile = Dir$ > Loop 'Len(strFile) > 0 > > ----- Original Message ----- > From: "Griffiths, Richard" > To: ; > Sent: Tuesday, July 01, 2003 8:59 AM > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hi > > > > Does anyone have the equivalent code snipet to get the same > functionality > as > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > Thanks > > > > Richard > > Manchester, UK > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] [AccessD] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 08:16:26 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 14:16:26 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Message-ID: <00ff01c33fd3$010f11c0$c86da8c0@D8TZHN0J> Hello Richard, In that case, App.Path is what you need. Did it work for you? Mark ----- Original Message ----- From: "Griffiths, Richard" To: "'Mark L. Breen'" ; Sent: Tuesday, July 01, 2003 9:22 AM Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Mark > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is > installed > Richard > > > -----Original Message----- > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > Sent: 01 July 2003 09:17 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hello Richard, > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > > help, > > > > Also, are you aware of the app.path command ? > > > > HTH, > > > > Mark Breen > > Ireland > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > > of the file name > > Do Until Len(strFile) = 0 > > ' Call a stored procedure to insert the filename and client > > name into the table > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > > strFile & "' " > > > > 'We will need this recordset to get the data from the > > database > > Dim rstFileName As New ADODB.Recordset > > > > 'now set up the recordset > > rstFileName.CursorLocation = adUseClient > > rstFileName.CursorType = adOpenStatic > > rstFileName.LockType = adLockBatchOptimistic > > rstFileName.Open strSQL, gccnn, , , adCmdText > > 'Get the next file > > strFile = Dir$ > > Loop 'Len(strFile) > 0 > > > > ----- Original Message ----- > > From: "Griffiths, Richard" > > To: ; > > Sent: Tuesday, July 01, 2003 8:59 AM > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > Hi > > > > > > Does anyone have the equivalent code snipet to get the same > > functionality > > as > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > Thanks > > > > > > Richard > > > Manchester, UK > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From R.Griffiths at bury.gov.uk Tue Jul 1 08:29:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 14:29:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1DF@MAILGATE.bury.gov.uk> Hi app.path will return the path to the MyApp.exe folder not MS Access.exe Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 14:16 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > In that case, App.Path is what you need. > > Did it work for you? > > Mark > > ----- Original Message ----- > From: "Griffiths, Richard" > To: "'Mark L. Breen'" ; > > Sent: Tuesday, July 01, 2003 9:22 AM > Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Mark > > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe > is > > installed > > Richard > > > > > -----Original Message----- > > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > > Sent: 01 July 2003 09:17 > > > To: dba-vb at databaseadvisors.com > > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > Hello Richard, > > > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following > may > > > help, > > > > > > Also, are you aware of the app.path command ? > > > > > > HTH, > > > > > > Mark Breen > > > Ireland > > > > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the > length > > > of the file name > > > Do Until Len(strFile) = 0 > > > ' Call a stored procedure to insert the filename and > client > > > name into the table > > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" > & > > > strFile & "' " > > > > > > 'We will need this recordset to get the data from the > > > database > > > Dim rstFileName As New ADODB.Recordset > > > > > > 'now set up the recordset > > > rstFileName.CursorLocation = adUseClient > > > rstFileName.CursorType = adOpenStatic > > > rstFileName.LockType = adLockBatchOptimistic > > > rstFileName.Open strSQL, gccnn, , , adCmdText > > > 'Get the next file > > > strFile = Dir$ > > > Loop 'Len(strFile) > 0 > > > > > > ----- Original Message ----- > > > From: "Griffiths, Richard" > > > To: ; > > > Sent: Tuesday, July 01, 2003 8:59 AM > > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > > > > Hi > > > > > > > > Does anyone have the equivalent code snipet to get the same > > > functionality > > > as > > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > > > Thanks > > > > > > > > Richard > > > > Manchester, UK > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Jdemarco at hshhp.org Tue Jul 1 10:13:59 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 1 Jul 2003 11:13:59 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> List, I'm been having a bit of a time getting a component that sends mail from a web form to work. It's dll based and works on other sites of ours. My boss suggested I ping the server to see if the SMTP port (25) is open (I haven't gotten a straight answer from our hardware staff). Can anyone tell me how to do so? Thanks, Jim DeMarco *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From stuart at lexacorp.com.pg Tue Jul 1 17:29:36 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 08:29:36 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F0297F0.19532.2DC50B@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:02:48 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:02:48 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F029FB8.30871.4C2850@localhost> >If you get a valid response to the Ping, try telnetting into the >Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or >whatever. That second option should of course be "TELNET 10.10.10.1 25" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:07:59 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:07:59 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F02A0EF.4181.50E92E@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] [AccessD] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Wed Jul 2 04:34:23 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Wed, 2 Jul 2003 10:34:23 +0100 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE References: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> Message-ID: <009c01c3407d$2b171ad0$c86da8c0@D8TZHN0J> Hello Paul, I think that the multiple step message is what VB sends us when SQL sends it an error. IE, VB does not try to accurately interpet the SQL error message. What I sometimes do when I have this problem is do the work in the table view or in QA, BTW, do you use VID for you DB design and building work? I think that you may have No Nulls set for the numeric, that may explain why it does not let you save a blank Let us know Mark ----- Original Message ----- From: To: ; Sent: Wednesday, July 02, 2003 10:14 AM Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE > To all, > > I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : > > Multiple-step operation generated errors. Check each status value. > > Anyone have any ideas on why this happens ? > > Paul > > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Jdemarco at hshhp.org Wed Jul 2 06:47:39 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 2 Jul 2003 07:47:39 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F022@TTNEXCHSRV1.hshhp.com> Thanks Stuart, I found a 30 day trial of an app called P-Ping that lets me query a specific port as well as check an IP for what services are available on it (www.29soft.com). Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, July 01, 2003 6:30 PM To: Jim DeMarco; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Ping server port On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From nilslenz at 3oaks.com Fri Jul 4 04:13:04 2003 From: nilslenz at 3oaks.com (Lenz, Nils) Date: Fri, 4 Jul 2003 05:13:04 -0400 Subject: [dba-VB] automated response Message-ID: <10307040513.AA14591607@3oaks.com> I will be on vacation from July 3rd and returning around the 20th. Because of e-mail storage limitations I may or may not receive your e-mail. Otherwise resend after I return. Thanks, Nils From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] [AccessD] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] [AccessD] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Fri Jul 4 08:52:31 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 4 Jul 2003 09:52:31 -0400 Subject: [dba-VB] Send Email Automatically VB6 In-Reply-To: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> Message-ID: <002e01c34233$87673880$5e310cd8@hargrove.internal> Working with the Outlook object model would be the easiest. The only problem with it is that when Microsoft tightened the Security on Outlook they added message boxes to alert the user when another program was trying to send a message through Outlook. To get around the Outlook Security patch issues, you have 2 choices: 1. Redemption (http://www.dimastr.com/redemption/) 2. MAPI/CDO code You can get more information on your options by looking at the following sites... Slipstick Systems Outlook and Exchange Solutions Center http://www.slipstick.com/ Outlook CDO Knowledge Base http://www.microeye.com/resources/res_outlkb.htm CDO Live http://www.cdolive.com/cdo5.htm Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, July 04, 2003 5:18 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Send Email Automatically VB6 To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Thu Jul 10 14:58:13 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 10 Jul 2003 15:58:13 -0400 Subject: [dba-VB] VB6 NT Service with task tray interaction. Message-ID: <806536912C472E4A9D6515DF2E57261E239415@mercury.tnco-inc.com> Hello All, I am looking for information on how to make a VB6 application that will be run as an NT service AND interacted with by a task tray icon. I have never done this before so please don't assume any previous knowledge about doing this. :) I already got my hands on NTSVC.OCX. I don't know if this is all I need to get the app to run as a service, but that was the impression that I got. Can anyone help get me started? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] [AccessD] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 12 13:57:01 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 12 Jul 2003 14:57:01 -0400 Subject: [dba-VB] Visual Studio Magazine Premier Membership In-Reply-To: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Message-ID: <015e01c348a7$6098a2a0$8e01a8c0@Rock> Since I have been jobless for 3+months, among other things my VS membership expired. There is an article available to Premier members only for which I would love the source. If you are a member and willing to help, e me off-list and I'll tell you the article ID etc. Arthur From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] [AccessD] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Mon Jul 14 08:27:12 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Mon, 14 Jul 2003 09:27:12 -0400 Subject: [dba-VB] OT: VBA.NET Null In-Reply-To: Message-ID: <001801c34a0b$a62f76d0$df320cd8@hargrove.internal> You have to use NOTHING instead of NULL. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jcolby at colbyconsulting.com Sent: Monday, July 14, 2003 8:31 AM To: VBA; AccessD Subject: [dba-VB] OT: VBA.NET Null I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] [AccessD] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From GRAY at utah.gov Tue Jul 15 14:09:47 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 15 Jul 2003 13:09:47 -0600 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 15 14:45:49 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Tue, 15 Jul 2003 15:45:49 -0400 Subject: [dba-VB] OT: VB.Net - general questions In-Reply-To: Message-ID: Thanks, I'll read it. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Tuesday, July 15, 2003 3:10 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: VB.Net - general questions John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] [AccessD] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 19 12:38:10 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 19 Jul 2003 13:38:10 -0400 Subject: [dba-VB] TreeView sample in .NET problems In-Reply-To: Message-ID: <000c01c34e1c$85f51c70$8e01a8c0@Rock> Before posting a bunch of code and risking rejection due to size, has anyone played with Treeview in .NET? I'm working up a sample that dies on a particular line and after a couple of hours staring at it, I cannot deduce the problem. AFAIK it should work. I'll try an abbreviated version, below. If this is not enough, and you are interested in the problem, e me off-list and I'll send you a zip. Scenario: Two classes, Customer and Order, the former containing a collection of Order objects. There is no database, I manufacture the instances in loops. I populate the base level with a node for each of 1000 customers, then I walk the nodes and add some orders to each customerOrders collection. Here are the classes: Public Class Customer Public CustomerID As String Public CustomerName As String Public CustomerOrders As Collection Sub New(ByVal ID As String) Me.CustomerID = ID End Sub End Class Public Class Order Public OrderID As String Sub New(ByVal ID As String) Me.OrderID = ID End Sub End Class Assume that a loop correctly builds 1000 customer nodes. There's an arrayList that is used to fill the customer node level and then I attempt to walk it like so: ' Add orders to each Customer object in the ArrayList. Dim customer1 As Customer For Each customer1 In customerArray Dim y As Integer For y = 0 To 14 customer1.CustomerOrders.Add(New Order("Order" + y.ToString())) Next y Next customer1 The line that chokes is the innermost, where I try to add a new order. Given the class declaration above, I can't see why it doesn't work. Any suggestions? TIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:07:33 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:07:33 -0400 Subject: [dba-VB] OT: ASP.net not working Message-ID: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Message-ID: <001701c35192$d2da9000$6401a8c0@cx321705b> I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:28:36 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:28:36 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <001701c35192$d2da9000$6401a8c0@cx321705b> Message-ID: The file does have a .aspx extension. How do I tell if ASP.Net is correctly installed? How do I tell if IIS is able to use it? IOW, apparently a browser just ignores anything it doesn't understand so maybe the .net stuff isn't being processed at the server. It is supposed to use VB.net for all of the functions and stuff. I don't see a label or control that is the time control on the web page. Of course maybe I won't if nothing is displayed in it. Oh the joys of learning all new (very complex) stuff. It is probably something simple like something didn't install properly. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Wednesday, July 23, 2003 11:23 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com From larry at lwoods.com Wed Jul 23 23:36:44 2003 From: larry at lwoods.com (Larry Woods) Date: Wed, 23 Jul 2003 21:36:44 -0700 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: <000301c3519d$2f775190$6401a8c0@cx321705b> Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 07:53:58 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 08:53:58 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <000301c3519d$2f775190$6401a8c0@cx321705b> Message-ID: No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [AccessD] RE: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From GRAY at utah.gov Fri Jul 25 11:47:46 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 10:47:46 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Fri Jul 25 12:11:48 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Fri, 25 Jul 2003 13:11:48 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From GRAY at utah.gov Fri Jul 25 14:05:20 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 13:05:20 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: Well, I'll have to remember that one. I am ususally in that config screen to delete extentions, adding is a pain, so anything that adds this automatically will be a big help. Gary >>> jcolby at colbyconsulting.com 07/25/03 11:11AM >>> Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Jul 31 13:07:17 2003 From: pharold at proftesting.com (Perry Harold) Date: Thu, 31 Jul 2003 14:07:17 -0400 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 In-Reply-To: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> Message-ID: <004a01c3578e$93c9e300$082da8c0@D58BT131> You might set it programmatically with the printers collection PrinterX.Orientation=vbPRORLandscape Then set it as the default printer Or use the inputbox to choose a printer and set the properties of the printer as it is chosen. Either one before using the PrintForm method. Perry Harold -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, July 31, 2003 9:52 AM To: dba-vb at databaseadvisors.com Cc: accessd at databaseadvisors.com Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK From R.Griffiths at bury.gov.uk Tue Jul 1 02:59:01 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 08:59:01 +0100 Subject: [dba-VB] [AccessD] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Hi Does anyone have the equivalent code snipet to get the same functionality as SysCmd(acSysCmdAccessDir) from within a VB app Thanks Richard Manchester, UK _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 03:17:17 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 09:17:17 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <00c101c33fa9$346fc930$c86da8c0@D8TZHN0J> Hello Richard, I do not know what SysCmd(acSysCmdAccessDir does, but the following may help, Also, are you aware of the app.path command ? HTH, Mark Breen Ireland strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length of the file name Do Until Len(strFile) = 0 ' Call a stored procedure to insert the filename and client name into the table strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & strFile & "' " 'We will need this recordset to get the data from the database Dim rstFileName As New ADODB.Recordset 'now set up the recordset rstFileName.CursorLocation = adUseClient rstFileName.CursorType = adOpenStatic rstFileName.LockType = adLockBatchOptimistic rstFileName.Open strSQL, gccnn, , , adCmdText 'Get the next file strFile = Dir$ Loop 'Len(strFile) > 0 ----- Original Message ----- From: "Griffiths, Richard" To: ; Sent: Tuesday, July 01, 2003 8:59 AM Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > > Thanks > > Richard > Manchester, UK > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From R.Griffiths at bury.gov.uk Tue Jul 1 03:22:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 09:22:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Mark SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is installed Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 09:17 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > help, > > Also, are you aware of the app.path command ? > > HTH, > > Mark Breen > Ireland > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > of the file name > Do Until Len(strFile) = 0 > ' Call a stored procedure to insert the filename and client > name into the table > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > strFile & "' " > > 'We will need this recordset to get the data from the > database > Dim rstFileName As New ADODB.Recordset > > 'now set up the recordset > rstFileName.CursorLocation = adUseClient > rstFileName.CursorType = adOpenStatic > rstFileName.LockType = adLockBatchOptimistic > rstFileName.Open strSQL, gccnn, , , adCmdText > 'Get the next file > strFile = Dir$ > Loop 'Len(strFile) > 0 > > ----- Original Message ----- > From: "Griffiths, Richard" > To: ; > Sent: Tuesday, July 01, 2003 8:59 AM > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hi > > > > Does anyone have the equivalent code snipet to get the same > functionality > as > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > Thanks > > > > Richard > > Manchester, UK > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jul 1 05:13:05 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 1 Jul 2003 10:13:05 +0000 Subject: [dba-VB] [AccessD] Visual Basic 6 - Email Using MAPI Controls Message-ID: <20030701101305.BNA4720.fep07-svc.ttys.com@localhost> To all, I have a VB6 FE connecting to a SQL Server 7.0 BE using a very simple personnel form (payroll number, address etc). When a user changes a payroll number I want to send an email to HR, but also CC to IT Programmers. I have a data environment with a recordset looking at tblUsers which has their email addresses and deptartment or job title in. I am using the code below but I get the error message something like 'invalid recipients', but if I just enter my name as normal in the CC (i.e. Paul Hartland) then it works fine, if I try and pick it from the recordset the error message occurs again, even though my name in the database is Paul Hartland ???...Can anyone see anything wrong with the code below..........Watch for wrapping....... If (DEGenSQL.rstblUsers.State = adStateOpen) Then DEGenSQL.rstblUsers.Close End If DEGenSQL.tblUsers pubEmailSub = "" pubEmailBody = "" MAPISession1.SignOn MAPIMessages1.MsgIndex = -1 MAPIMessages1.RecipType = 1 With DEGenSQL.rstblUsers .MoveFirst Do Until (.EOF) If (.Fields("DeptOrJob") = "HR") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop .MoveFirst MAPIMessages1.RecipType = 2 Do Until (.EOF) If (.Fields("DeptOrJob") = "IT Programmer") Then MAPIMessages1.RecipDisplayName = .Fields("EmailAddress") MAPIMessages1.RecipIndex = MAPIMessages1.RecipCount End If .MoveNext Loop End With DEGenSQL.rstblUsers.Close pubEmailSub = "**** THIS IS A TEST - PLEASE DELETE THIS EMAIL ****" 'pubEmailSub = "Payroll Number has been Changed" pubEmailBody = ?Payroll number changed? MAPIMessages1.MsgSubject = pubEmailSub MAPIMessages1.MsgNoteText = pubEmailBody MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Send False MAPISession1.SignOff Thanks in advance for any help...... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jul 1 08:16:26 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 1 Jul 2003 14:16:26 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) References: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D7@MAILGATE.bury.gov.uk> Message-ID: <00ff01c33fd3$010f11c0$c86da8c0@D8TZHN0J> Hello Richard, In that case, App.Path is what you need. Did it work for you? Mark ----- Original Message ----- From: "Griffiths, Richard" To: "'Mark L. Breen'" ; Sent: Tuesday, July 01, 2003 9:22 AM Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > Mark > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe is > installed > Richard > > > -----Original Message----- > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > Sent: 01 July 2003 09:17 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Hello Richard, > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following may > > help, > > > > Also, are you aware of the app.path command ? > > > > HTH, > > > > Mark Breen > > Ireland > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the length > > of the file name > > Do Until Len(strFile) = 0 > > ' Call a stored procedure to insert the filename and client > > name into the table > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" & > > strFile & "' " > > > > 'We will need this recordset to get the data from the > > database > > Dim rstFileName As New ADODB.Recordset > > > > 'now set up the recordset > > rstFileName.CursorLocation = adUseClient > > rstFileName.CursorType = adOpenStatic > > rstFileName.LockType = adLockBatchOptimistic > > rstFileName.Open strSQL, gccnn, , , adCmdText > > 'Get the next file > > strFile = Dir$ > > Loop 'Len(strFile) > 0 > > > > ----- Original Message ----- > > From: "Griffiths, Richard" > > To: ; > > Sent: Tuesday, July 01, 2003 8:59 AM > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > Hi > > > > > > Does anyone have the equivalent code snipet to get the same > > functionality > > as > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > Thanks > > > > > > Richard > > > Manchester, UK > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From R.Griffiths at bury.gov.uk Tue Jul 1 08:29:29 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 1 Jul 2003 14:29:29 +0100 Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1DF@MAILGATE.bury.gov.uk> Hi app.path will return the path to the MyApp.exe folder not MS Access.exe Richard > -----Original Message----- > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > Sent: 01 July 2003 14:16 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > Hello Richard, > > In that case, App.Path is what you need. > > Did it work for you? > > Mark > > ----- Original Message ----- > From: "Griffiths, Richard" > To: "'Mark L. Breen'" ; > > Sent: Tuesday, July 01, 2003 9:22 AM > Subject: RE: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > Mark > > SysCmd(acSysCmdAccessDir) simply returns the folder where MSAccess.exe > is > > installed > > Richard > > > > > -----Original Message----- > > > From: Mark L. Breen [SMTP:subs at solution-providers.ie] > > > Sent: 01 July 2003 09:17 > > > To: dba-vb at databaseadvisors.com > > > Subject: Re: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > Hello Richard, > > > > > > I do not know what SysCmd(acSysCmdAccessDir does, but the following > may > > > help, > > > > > > Also, are you aware of the app.path command ? > > > > > > HTH, > > > > > > Mark Breen > > > Ireland > > > > > > > > > strFile = Right(Dir$(gstrDirectory & "\*.txt"), 57) ' 57 is the > length > > > of the file name > > > Do Until Len(strFile) = 0 > > > ' Call a stored procedure to insert the filename and > client > > > name into the table > > > strSQL = "sp_AddPIDFileName '" & gstrDirectory & "', '" > & > > > strFile & "' " > > > > > > 'We will need this recordset to get the data from the > > > database > > > Dim rstFileName As New ADODB.Recordset > > > > > > 'now set up the recordset > > > rstFileName.CursorLocation = adUseClient > > > rstFileName.CursorType = adOpenStatic > > > rstFileName.LockType = adLockBatchOptimistic > > > rstFileName.Open strSQL, gccnn, , , adCmdText > > > 'Get the next file > > > strFile = Dir$ > > > Loop 'Len(strFile) > 0 > > > > > > ----- Original Message ----- > > > From: "Griffiths, Richard" > > > To: ; > > > Sent: Tuesday, July 01, 2003 8:59 AM > > > Subject: [dba-VB] OT:SysCmd(acSysCmdAccessDir) > > > > > > > > > > Hi > > > > > > > > Does anyone have the equivalent code snipet to get the same > > > functionality > > > as > > > > SysCmd(acSysCmdAccessDir) from within a VB app > > > > > > > > Thanks > > > > > > > > Richard > > > > Manchester, UK > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Jdemarco at hshhp.org Tue Jul 1 10:13:59 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 1 Jul 2003 11:13:59 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> List, I'm been having a bit of a time getting a component that sends mail from a web form to work. It's dll based and works on other sites of ours. My boss suggested I ping the server to see if the SMTP port (25) is open (I haven't gotten a straight answer from our hardware staff). Can anyone tell me how to do so? Thanks, Jim DeMarco *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From stuart at lexacorp.com.pg Tue Jul 1 17:29:36 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 08:29:36 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F0297F0.19532.2DC50B@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:02:48 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:02:48 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F029FB8.30871.4C2850@localhost> >If you get a valid response to the Ping, try telnetting into the >Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or >whatever. That second option should of course be "TELNET 10.10.10.1 25" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 18:07:59 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 02 Jul 2003 09:07:59 +1000 Subject: [dba-VB] Ping server port In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173EFF5@TTNEXCHSRV1.hshhp.com> Message-ID: <3F02A0EF.4181.50E92E@localhost> On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Jul 1 08:19:33 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Jul 2003 23:19:33 +1000 Subject: [dba-VB] Re: [AccessD] OT:SysCmd(acSysCmdAccessDir) In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F1D6@MAILGATE.bury.gov.uk> Message-ID: <3F021705.27746.2306322@localhost> On 1 Jul 2003 at 8:59, Griffiths, Richard wrote: > Hi > > Does anyone have the equivalent code snipet to get the same functionality as > SysCmd(acSysCmdAccessDir) from within a VB app > I had something in my toolbox which looked in the registry to get the "Shell Open" command for any registered file extension. With a bit of tweaking, I came up with this which works for me: Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As String, lpcbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Public Const HKEY_CLASSES_ROOT = &H80000000 Public Const KEY_QUERY_VALUE = &H1 Public Const REG_SZ = 1 Function AccessDir() As String 'Get the executable directory for the current version of MS Access from the registry Dim retval As Long Dim hKey As Long Dim strAppName As String Dim strExtension As String Dim strOpenCommand As String Dim strpathname As String strAppName = Space$(255) strpathname = Space$(255) 'Get the Application name for the current version of Access strExtension = ".mdb" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strExtension, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strAppName, 256) retval = RegCloseKey(hKey) strAppName = Left$(strAppName, InStr(strAppName, Chr$(0)) - 1) 'Get Open Command for the Access Application strOpenCommand = strAppName & "\shell\Open\command" retval = RegOpenKeyEx(HKEY_CLASSES_ROOT, strOpenCommand, 0, KEY_QUERY_VALUE, hKey) retval = RegQueryValueEx(hKey, "", 0, REG_SZ, ByVal strpathname, 256) retval = RegCloseKey(hKey) 'Extract Application Directory from the Open Command 'First get the full executable path and filename ' assuming executable is quoted which it always is in my experience strpathname = Trim$(Left$(strpathname, InStr(2, strpathname, Chr$(34)))) 'Now strip off the application filename AccessDir = Left$(strpathname, InStrRev(strpathname, "\")) End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 2 04:14:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 2 Jul 2003 9:14:48 +0000 Subject: [dba-VB] [AccessD] Muliple-step operation error - VB6 FE SQL BE Message-ID: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> To all, I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : Multiple-step operation generated errors. Check each status value. Anyone have any ideas on why this happens ? Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Wed Jul 2 04:34:23 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Wed, 2 Jul 2003 10:34:23 +0100 Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE References: <20030702091448.UGTC18836.fep01-svc.ttys.com@localhost> Message-ID: <009c01c3407d$2b171ad0$c86da8c0@D8TZHN0J> Hello Paul, I think that the multiple step message is what VB sends us when SQL sends it an error. IE, VB does not try to accurately interpet the SQL error message. What I sometimes do when I have this problem is do the work in the table view or in QA, BTW, do you use VID for you DB design and building work? I think that you may have No Nulls set for the numeric, that may explain why it does not let you save a blank Let us know Mark ----- Original Message ----- From: To: ; Sent: Wednesday, July 02, 2003 10:14 AM Subject: [dba-VB] Muliple-step operation error - VB6 FE SQL BE > To all, > > I have a Visual Basic 6 form which is connected to a SQL Server 7.0 database using an ADO control, all of the fields are either text or date with the exception of one, which is numeric. If I enter a numeric value in this everything is fine, but if I enter text or delete the contents and then try to save the recordset I get the following error message : > > Multiple-step operation generated errors. Check each status value. > > Anyone have any ideas on why this happens ? > > Paul > > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Jdemarco at hshhp.org Wed Jul 2 06:47:39 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 2 Jul 2003 07:47:39 -0400 Subject: [dba-VB] Ping server port Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F022@TTNEXCHSRV1.hshhp.com> Thanks Stuart, I found a 30 day trial of an app called P-Ping that lets me query a specific port as well as check an IP for what services are available on it (www.29soft.com). Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, July 01, 2003 6:30 PM To: Jim DeMarco; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Ping server port On 1 Jul 2003 at 11:13, Jim DeMarco wrote: > List, > > I'm been having a bit of a time getting a component that sends mail > from a web form to work. It's dll based and works on other sites of > ours. My boss suggested I ping the server to see if the SMTP port > (25) is open (I haven't gotten a straight answer from our hardware > staff). Can anyone tell me how to do so? > Your boss doesn't quite have it right. Ping will tell you if you can connect to the server, but doesn't tell you anything about Port 25. The 'ping' command generates an ICMP echo request packet. ICMP is a protocol over IP that implements "control messages" (flow control, routing, etc.). At that level the very concept of TCP/UDP ports is completely irrelevant. Start off with "PING \\MyServerName" or "Ping 10.10.10.1" or whatever if you know the IP Address of the mail server. That will tell you whether you can see the Server or not. If you get a valid response to the Ping, try telnetting into the Server with "TELNET \\MyServerName 25" or "TELNET \\10.10.10.1" or whatever. You will either get a welcome message form the SMTP Server or see a "Connecting...." message which will time out. If you get a valid response from the SMTP Server, just type QUIT and hit enter to get out again (note you will probably not see your keystrokes echoed to your screen, so make sure you type it corrrectly) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From nilslenz at 3oaks.com Fri Jul 4 04:13:04 2003 From: nilslenz at 3oaks.com (Lenz, Nils) Date: Fri, 4 Jul 2003 05:13:04 -0400 Subject: [dba-VB] automated response Message-ID: <10307040513.AA14591607@3oaks.com> I will be on vacation from July 3rd and returning around the 20th. Because of e-mail storage limitations I may or may not receive your e-mail. Otherwise resend after I return. Thanks, Nils From paul.hartland at fsmail.net Fri Jul 4 04:07:29 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:07:29 +0000 Subject: [dba-VB] [AccessD] Finding Bank Holidays between two dates Message-ID: <20030704090729.BDE1368.fep01-svc.ttys.com@localhost> To all, I think this may have been covered before but can't seem to find it anywhere, I need to detect any bank holidays (UK) between two dates that are entered by the user, is there anyway of doing this without having to setup a table of bank holidays each year. i.e. can I link into the Outlook calendar and find them etc Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 4 04:17:56 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 4 Jul 2003 9:17:56 +0000 Subject: [dba-VB] [AccessD] Send Email Automatically VB6 Message-ID: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Fri Jul 4 08:52:31 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 4 Jul 2003 09:52:31 -0400 Subject: [dba-VB] Send Email Automatically VB6 In-Reply-To: <20030704091757.BFS1368.fep01-svc.ttys.com@localhost> Message-ID: <002e01c34233$87673880$5e310cd8@hargrove.internal> Working with the Outlook object model would be the easiest. The only problem with it is that when Microsoft tightened the Security on Outlook they added message boxes to alert the user when another program was trying to send a message through Outlook. To get around the Outlook Security patch issues, you have 2 choices: 1. Redemption (http://www.dimastr.com/redemption/) 2. MAPI/CDO code You can get more information on your options by looking at the following sites... Slipstick Systems Outlook and Exchange Solutions Center http://www.slipstick.com/ Outlook CDO Knowledge Base http://www.microeye.com/resources/res_outlkb.htm CDO Live http://www.cdolive.com/cdo5.htm Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, July 04, 2003 5:18 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Send Email Automatically VB6 To all, First things first, the FE is VB6 the BE is SQL Server 7.0, using Windows XP Professional with Outlook as my default Email. I have a table of users on which contains Username, Password, AccessLevel, JobTitle_Or_Department. What I need to do is on certain sections of my application is run down the list of users and based on their job title or department, add them to the TO section of the email, then add any IT Developer (Job Title) to the CC section of the email. I also need in some cases to be able to add an attachment to the email. What is the best way to go about this, I was going to use MAPI but just wondered if anyone out there knew a better way. Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 9 10:40:49 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 9 Jul 2003 15:40:49 +0000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server Message-ID: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> To all, I'm working on a project for my own use, and need to know if there's a way to automatically detect the name/address of the SMTp server that the person sends email through. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Wed Jul 9 18:52:05 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 10 Jul 2003 09:52:05 +1000 Subject: [dba-VB] [AccessD] OT - Detecting Name/Address of SMTP server In-Reply-To: <20030709154050.OBHR1637.fep04-svc.ttys.com@localhost> Message-ID: <3F0D3745.6242.65AF38@localhost> On 9 Jul 2003 at 15:40, paul.hartland at fsmail.net wrote: > To all, > > I'm working on a project for my own use, and need to know if there's a > way to automatically detect the name/address of the SMTp server that > the person sends email through. > > Paul In general, you just need to parse out the last (in sequence, first in time) Time Stamp Line(s) in the message headers. See RFC 821. Sect 4.1.2 for specifications of this line. Your message tells me: Received: from fep04-svc.ttys.com (mx-out.ttys.com [80.239.199.130]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id h69FenQ02022; Wed, 9 Jul 2003 10:40:49 -0500 Received: from localhost ([127.0.0.1]) by fep04-svc.ttys.com (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20030709154050.OBHR1637.fep04-svc.ttys.com at localhost>; So your SMTP Server appears to be 80.239.199.130 and it's called both fep04-svc.ttys.com (it's internal name) or mx_out.ttys.com (it's Canonical name which you get when you do a nslookup on 80.239.199.130). It also tells me what mail server software ttys.com is using. Note: If you are trying to use it to track spam though, that won't work for very often since they generally forge some of the headers. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Thu Jul 10 14:58:13 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 10 Jul 2003 15:58:13 -0400 Subject: [dba-VB] VB6 NT Service with task tray interaction. Message-ID: <806536912C472E4A9D6515DF2E57261E239415@mercury.tnco-inc.com> Hello All, I am looking for information on how to make a VB6 application that will be run as an NT service AND interacted with by a task tray icon. I have never done this before so please don't assume any previous knowledge about doing this. :) I already got my hands on NTSVC.OCX. I don't know if this is all I need to get the app to run as a service, but that was the impression that I got. Can anyone help get me started? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 11 09:49:06 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 11 Jul 2003 10:49:06 -0400 Subject: [dba-VB] [AccessD] MSComm control - Cross post AccessD & dba-vb Message-ID: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Hi All, I am using the MSComm control to capture data the is coming over the serial port. I am using the OnComm event to determine when data is received by looking at the ComEvent property and detecting a comEVReceive status. When the attached device sends information to the serial port it actually send 3 lines of information (on average, could be more). What I am wondering is when does the OnComm event fire? Does it fire after all the data has been received or does it fire as soon as the first character is received into the input buffer? What I am trying to avoid is pulling the data from the input buffer before all the data is there. That way I can capture everything I need before I start parsing the data. Any ideas? Thanks! Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 12 13:57:01 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 12 Jul 2003 14:57:01 -0400 Subject: [dba-VB] Visual Studio Magazine Premier Membership In-Reply-To: <806536912C472E4A9D6515DF2E57261E23941D@mercury.tnco-inc.com> Message-ID: <015e01c348a7$6098a2a0$8e01a8c0@Rock> Since I have been jobless for 3+months, among other things my VS membership expired. There is an article available to Premier members only for which I would love the source. If you are a member and willing to help, e me off-list and I'll tell you the article ID etc. Arthur From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 07:31:21 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 08:31:21 -0400 Subject: [dba-VB] [AccessD] OT: VBA.NET Null Message-ID: I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Mon Jul 14 08:27:12 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Mon, 14 Jul 2003 09:27:12 -0400 Subject: [dba-VB] OT: VBA.NET Null In-Reply-To: Message-ID: <001801c34a0b$a62f76d0$df320cd8@hargrove.internal> You have to use NOTHING instead of NULL. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jcolby at colbyconsulting.com Sent: Monday, July 14, 2003 8:31 AM To: VBA; AccessD Subject: [dba-VB] OT: VBA.NET Null I am trying to return a null value for a pointer to an object under certain circumstances. I'm getting a compile error saying Null is no longer supported. What gives? John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Jul 14 13:16:56 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Mon, 14 Jul 2003 14:16:56 -0400 Subject: [dba-VB] [AccessD] OT: VB.Net - general questions Message-ID: I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From GRAY at utah.gov Tue Jul 15 14:09:47 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 15 Jul 2003 13:09:47 -0600 Subject: [dba-VB] OT: VB.Net - general questions Message-ID: John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Jul 15 14:45:49 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Tue, 15 Jul 2003 15:45:49 -0400 Subject: [dba-VB] OT: VB.Net - general questions In-Reply-To: Message-ID: Thanks, I'll read it. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Tuesday, July 15, 2003 3:10 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: VB.Net - general questions John, Take a look at this article: http://www.vbdotnetheaven.com/Code/Apr2003/009.asp Basically, the System object exposes an Exception object that many of the other framework classes extend. I am not sure if there is a named object for a "missing collection exception", but if you look at the article it explains how to hande the select case type of exception traps that you are talking about. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/14/03 12:16PM >>> I am porting my SysVars class to VB.Net just as an exercise. Of course I use the error handler insertion wizard for Access, but VB.Net has the new Try/catch error handling (which I very much like BTW). But it does mean that no port is trivial since I have to remove all the OnError / resume kind of stuff in every function. In my old code I have a case statement where I accumulated the various errors that could occur, and once handled a resume next would take me back into the code. that obviously has to change but I'm a little confused as to what it will change to. For example I have code that attempts to add an object to a collection: mcolObjNames.Add(strObjName, strObjName) There could be two problems here, the first is that no collection has been instantiated yet, the second is that the object is already in the collection. Thus a select case would be nice, which was how the old error handler in Access worked. Select case err case XXX case YYY Case else end select Now we have: Try mcolObjNames.Add(strObjName, strObjName) Catch e as XXXX (FIRST PROBLEM - WHAT IS xxxx?) Handle error here Finally End Try It certainly looks like e could be used in a select case statement. However to do so I need the equivalent of the "resume next". AND FINALLY... In access I also used a label for the exit such that all exiting code could go through the exit point for cleanup of pointers etc. The books I have don't ever show such a construct. John W. Colby www.colbyconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Jul 15 04:19:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 15 Jul 2003 9:19:08 +0000 Subject: [dba-VB] [AccessD] VB6 DataCombo Message-ID: <20030715091908.USKQ18722.fep06-svc.ttys.com@localhost> To all, I have a DataCombo control on a form (VB6), and what I would like is when the user starts to type is display the entry at the top of the list, inside the box. At the moment it filters ok, but the combo box remains blank unless I drop down the box.. Thanks in adavnce for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Fri Jul 18 08:41:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Jul 2003 13:41:44 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 Stored Procedure & VB6 Command Object (Data Environment) Message-ID: <20030718134144.IBET1637.fep04-svc.ttys.com@localhost> To all, I have a Stored Procedure in SQL 7.0 which I want to use to insert an exact copy of a personnel record, the record has 66 fields in and I have created the stored procedure in SQL 7.0 and have created a command object in a data environmet which holds this SP..the data environment is called DEGenSQL, but when I want to execute it via code I type in DEGenSQL.SP_Insert_Personnel_ReEmploy but when I put a space, nothing appears for me to enter the parameters. I left it as it is and clicked Start With Full Compile and got the following error : Subscript Out Of Range Does this mean I can't have this many parameters or has anyone any ideas on what this may be ? Thanks in Advance Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Jul 19 12:38:10 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 19 Jul 2003 13:38:10 -0400 Subject: [dba-VB] TreeView sample in .NET problems In-Reply-To: Message-ID: <000c01c34e1c$85f51c70$8e01a8c0@Rock> Before posting a bunch of code and risking rejection due to size, has anyone played with Treeview in .NET? I'm working up a sample that dies on a particular line and after a couple of hours staring at it, I cannot deduce the problem. AFAIK it should work. I'll try an abbreviated version, below. If this is not enough, and you are interested in the problem, e me off-list and I'll send you a zip. Scenario: Two classes, Customer and Order, the former containing a collection of Order objects. There is no database, I manufacture the instances in loops. I populate the base level with a node for each of 1000 customers, then I walk the nodes and add some orders to each customerOrders collection. Here are the classes: Public Class Customer Public CustomerID As String Public CustomerName As String Public CustomerOrders As Collection Sub New(ByVal ID As String) Me.CustomerID = ID End Sub End Class Public Class Order Public OrderID As String Sub New(ByVal ID As String) Me.OrderID = ID End Sub End Class Assume that a loop correctly builds 1000 customer nodes. There's an arrayList that is used to fill the customer node level and then I attempt to walk it like so: ' Add orders to each Customer object in the ArrayList. Dim customer1 As Customer For Each customer1 In customerArray Dim y As Integer For y = 0 To 14 customer1.CustomerOrders.Add(New Order("Order" + y.ToString())) Next y Next customer1 The line that chokes is the innermost, where I try to add a new order. Given the class declaration above, I can't see why it doesn't work. Any suggestions? TIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 21 09:59:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Jul 2003 14:59:54 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Copying a record VB6 & SQL Server 7.0 Message-ID: <20030721145954.RCHZ18716.fep07-svc.ttys.com@localhost> To all, we have a high turnover of staff, mainly because most are casual workers and don't want full-time employment. When a member of staff leaves we issue them with a finish date. However if they decide they want to come back we need to re-employ them with a new payroll number, I have a re-employ button that asks the user for the new payroll number...but here is where I need help : I then need to create an identical personnel record (66 fields to the one shown on screen) but with the new payroll number. My front-end is Visual Basic 6 and my back-end is SQL Server 7.0. I thought the easiest way would be to create an insert stored procedure with parameters and then execute it from VB, so I created the SP and ran it using Query Analyser (Worked Fine), I also added it to my dataenvironment as a command. However when I type DEGenSQL.sp_Personnel_ReEmploy I get no option to enter any of the parameters and if I try RUN/Start With Full Compile I get the following error message : Compile Error : Subscript Out Of Range This makes me think there are too many parameters required. Has anyone else come across this, or does anyone know of a better way to go about this. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 09:06:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 14:06:45 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] Auto Supply Connection strings and passwords to controls on forms (VB6 & SQL) Message-ID: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Jul 23 10:57:22 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 23 Jul 2003 15:57:22 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]Number of rows affected by update, insert etc Message-ID: <20030723155723.WFR12458.fep10-svc.ttys.com@localhost> To all, I have a VB6 application which uses the dataenvironment to link to a Access2002 database, and I use command objects connnected to the dataenvironment which update, delete & insert records..... Is there anyway I can get the count of how many rows have been affected Thanks in advance for you help Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:07:33 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:07:33 -0400 Subject: [dba-VB] OT: ASP.net not working Message-ID: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Folks, I'm working through the very first real example of an asp.net page doing something, i.e. displaying the time from the web server. I have IIS running, ASP.net installed (in fact the entire Visual Studio.net installed), the .net framework installed etc. The code for the web page is: The Punctual Web Server

Welcome

In WebServerLand the time is currently: Message-ID: <001701c35192$d2da9000$6401a8c0@cx321705b> I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Jul 23 22:28:36 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Wed, 23 Jul 2003 23:28:36 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <001701c35192$d2da9000$6401a8c0@cx321705b> Message-ID: The file does have a .aspx extension. How do I tell if ASP.Net is correctly installed? How do I tell if IIS is able to use it? IOW, apparently a browser just ignores anything it doesn't understand so maybe the .net stuff isn't being processed at the server. It is supposed to use VB.net for all of the functions and stuff. I don't see a label or control that is the time control on the web page. Of course maybe I won't if nothing is displayed in it. Oh the joys of learning all new (very complex) stuff. It is probably something simple like something didn't install properly. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Wednesday, July 23, 2003 11:23 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working I'll take a shot at it, John. Did you save the file with an ".htm" or a ".aspx" extension. Obviously, the correct answer is the latter. If you specified the file with a .htm extension you will see the results that you describe. Your file with a .aspx extension works correctly on my computer. Larry Woods > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:08 PM > To: AccessD > Cc: VBA > Subject: [dba-VB] OT: ASP.net not working > > > Folks, > > I'm working through the very first real example of an asp.net > page doing something, i.e. displaying the time from the web server. > > I have IIS running, ASP.net installed (in fact the entire > Visual Studio.net installed), the .net framework installed > etc. The code for the web page is: > > > > > The Punctual Web Server > >

Welcome

> In WebServerLand the time is currently: > > > > > That's all there is. When I run it, the expected text is > displayed but the time is not. The book ("Beginning ASP.net > 1.0 with VB.Net" from Wrox) gives a less than helpful "if the > time is not displaying then you might have mis-typed the > code". I downloaded the examples from the web site and the > code in the example above exactly matches the code in the book. > > Further I went into Visual Studio.net and built a web page > application. I then pasted the relevant code into the web > page generated for me by ASP.net. Again, when run the > expected text is displayed but not the time. This seems to > indicate that the IIS server isn't correctly calling the .net > framework and getting results back from it but I am at a loss > to troubleshoot it. > > Any ideas why this wouldn't work? > > John W. Colby > www.colbyconsulting.com From larry at lwoods.com Wed Jul 23 23:36:44 2003 From: larry at lwoods.com (Larry Woods) Date: Wed, 23 Jul 2003 21:36:44 -0700 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: <000301c3519d$2f775190$6401a8c0@cx321705b> Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 07:53:58 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 08:53:58 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: <000301c3519d$2f775190$6401a8c0@cx321705b> Message-ID: No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Thu Jul 24 10:48:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 24 Jul 2003 11:48:04 -0400 Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) In-Reply-To: <20030723140646.URIV18716.fep07-svc.ttys.com@localhost> Message-ID: <000601c351fa$f8795180$8e01a8c0@Rock> Although retrofitting it might be a little work, why don't you define the connection string as a constant? Then you could find and replace all the literal occurrences "Those who would sacrifice liberty for security deserve neither." -- Benjamin Franklin -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: July 23, 2003 10:07 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] [dba-SQLServer]Auto Supply Connection strings and passwords to controls on forms(VB6 & SQL) To all, I have a VB6 application which looks at a SQL Server 7 database (which is on a development server), and I am using a mixture of DataEnvironment and ADO Controls for the application. However when it's finshed It will be moved to the live server so that everyone can gain access to it. The problem being that when I move to the live server I will have to remember to change all the ADO controls and the DataEnvironment connection manually (I don't want to have to do this if I can help it). What I thought of doing is have a table consisting of the ConnectionString, Username & Password and then a table of all the form names and ADO Controls, and somehow looping through the tables and setting the connections automatically. This is where I am stuck, I have created the tables and entered the connection strings etc, and I can do the loop which will loop through the records, but I don;t know how to set the connection strings, using the form names and ADO Controls from the tables. Am I being stupid in doing it this way ? Is there a better way to do this ? Can anyone help on this, as the application is almost finished.....? Thanks for any help in advance.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Jul 24 12:15:03 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Thu, 24 Jul 2003 13:15:03 -0400 Subject: [AccessD] RE: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From GRAY at utah.gov Fri Jul 25 11:47:46 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 10:47:46 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Fri Jul 25 12:11:48 2003 From: jcolby at colbyconsulting.com (jcolby at colbyconsulting.com) Date: Fri, 25 Jul 2003 13:11:48 -0400 Subject: [dba-VB] OT: ASP.net not working In-Reply-To: Message-ID: Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From GRAY at utah.gov Fri Jul 25 14:05:20 2003 From: GRAY at utah.gov (Gary Ray) Date: Fri, 25 Jul 2003 13:05:20 -0600 Subject: [dba-VB] OT: ASP.net not working Message-ID: Well, I'll have to remember that one. I am ususally in that config screen to delete extentions, adding is a pain, so anything that adds this automatically will be a big help. Gary >>> jcolby at colbyconsulting.com 07/25/03 11:11AM >>> Actually I did that based on a hint from Martin. What ended up fixing it was the following run in a dos box: aspnet_regiis.exe -i Googling that shows me that the program "registers" ASP.Net with IIS (whatever THAT may mean). Apparently MS has seen this problem before and built a utility to fix everything up. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Gary Ray Sent: Friday, July 25, 2003 12:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working John, Web Matrix includes it's own web server - like the old Personal Web Server. If it works on the web matrix port, it should work on an IIS machine with .Net properly configured. One not about the web matrix web server, I haven't been able to get it to use my include files, and occasionally have problems with css. I don't know why th aspx extentions would not have installed correct when you installed either the .Net framework or VS.Net, but here is what you should be looking to fix it: Open IIS Administration Console Right Click on the machine/name and select properties In the Master Properties section click on Edit On the Home Directory tab click Configuration - You should now see a dialog with a list of file extentions and the associatied library that interprets the files. Look in the list for the ASPX extention. If it is not there you can add it: Click on Add for the executable you will need to browse to a file similar to -- C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and add aspx as the extention You shouldn't have to restart IIS, but it may be a good idea anyway. Gary Ray - Application Developer ASP - ASP.NET - VB - C# Workforce Information Systems R & D E-Mail gray at utah.gov >>> jcolby at colbyconsulting.com 07/24/03 11:15AM >>> Well, I got it running by using Microsoft ASP.net Web Matrix Server from the MS Web Matrix. However I used a brand new web page also created by Web Matrix. The url is: http://localhost:8080/NewFile.aspx . Is web matrix setting up it's own IIS. or is it using IIS from Windows? This :8080 is not specified anywhere else, i.e., I can just got localhost/MyWebPg.aspx (or htlm) and get it to run. The .net functionality STILL isn't working from within Visual Studio.net nor directly if referenced as above. What is going on here? HELP. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of jcolby at colbyconsulting.com Sent: Thursday, July 24, 2003 8:54 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working No, Asp.net is not listed. If I correctly installed it shouldn't the installation have set this up? Nothing I have read so far has ever taken me to this dialog. John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods Sent: Thursday, July 24, 2003 12:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: ASP.net not working Open IIS;right-click IIS name (probably name of your computer)-click Properties. In the Master Properties frame, click Edit. Then click the ISAPI tab. Is ASP.NET listed in the filter list? > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > jcolby at colbyconsulting.com > Sent: Wednesday, July 23, 2003 8:29 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > The file does have a .aspx extension. > > How do I tell if ASP.Net is correctly installed? How do I > tell if IIS is able to use it? IOW, apparently a browser > just ignores anything it doesn't understand so maybe the .net > stuff isn't being processed at the server. It is supposed to > use VB.net for all of the functions and stuff. I don't see a > label or control that is the time control on the web page. > Of course maybe I won't if nothing is displayed in it. > > Oh the joys of learning all new (very complex) stuff. It is > probably something simple like something didn't install properly. > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Larry Woods > Sent: Wednesday, July 23, 2003 11:23 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: ASP.net not working > > > > I'll take a shot at it, John. Did you save the file with an > ".htm" or a ".aspx" extension. Obviously, the correct answer > is the latter. If you specified the file with a .htm > extension you will see the results that you describe. Your > file with a .aspx extension works correctly on my computer. > > Larry Woods > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > > jcolby at colbyconsulting.com > > Sent: Wednesday, July 23, 2003 8:08 PM > > To: AccessD > > Cc: VBA > > Subject: [dba-VB] OT: ASP.net not working > > > > > > Folks, > > > > I'm working through the very first real example of an asp.net page > > doing something, i.e. displaying the time from the web server. > > > > I have IIS running, ASP.net installed (in fact the entire Visual > > Studio.net installed), the .net framework installed etc. > The code for > > the web page is: > > > > > > > > > > The Punctual Web Server > > > >

Welcome

> > In WebServerLand the time is currently: > > > > > > > > > > > That's all there is. When I run it, the expected text is displayed > > but the time is not. The book ("Beginning ASP.net 1.0 with VB.Net" > > from Wrox) gives a less than helpful "if the time is not displaying > > then you might have mis-typed the code". I downloaded the examples > > from the web site and the code in the example above exactly matches > > the code in the book. > > > > Further I went into Visual Studio.net and built a web page > > application. I then pasted the relevant code into the web page > > generated for me by ASP.net. Again, when run the expected text is > > displayed but not the time. This seems to indicate that the IIS > > server isn't correctly calling the .net framework and > getting results > > back from it but I am at a loss to troubleshoot it. > > > > Any ideas why this wouldn't work? > > > > John W. Colby > > www.colbyconsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/d> ba-vb > http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jul 28 04:11:59 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 28 Jul 2003 9:11:59 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset Message-ID: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> To all, I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. Thanks in advance. Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jul 31 08:51:36 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Jul 2003 13:51:36 +0000 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 Message-ID: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Jul 31 13:07:17 2003 From: pharold at proftesting.com (Perry Harold) Date: Thu, 31 Jul 2003 14:07:17 -0400 Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 In-Reply-To: <20030731135136.QBHR4342.fep08-svc.ttys.com@localhost> Message-ID: <004a01c3578e$93c9e300$082da8c0@D58BT131> You might set it programmatically with the printers collection PrinterX.Orientation=vbPRORLandscape Then set it as the default printer Or use the inputbox to choose a printer and set the properties of the printer as it is chosen. Either one before using the PrintForm method. Perry Harold -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, July 31, 2003 9:52 AM To: dba-vb at databaseadvisors.com Cc: accessd at databaseadvisors.com Subject: [dba-VB] [AccessD] Printing a form view in Visual Basic 6 To all, I have a Visual Basic 6 application from which (every so often) a user will need to print the form thats currently being shown on screen (i.e. frmEmployees). If I use the PrintForm method I don;t seem to have any control on printing as landscape etc. Does anyone know the best and most efficient way to achieve this... Thanks in advance for any help on this.... Paul Hartland __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > From martyconnelly at shaw.ca Thu Jul 31 14:59:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Jul 2003 12:59:34 -0700 Subject: [dba-VB] [dba-SQLServer] [AccessD] ADO Control With Stored Procedure as Recordset References: <20030728091159.SGIT12389.fep02-svc.ttys.com@localhost> Message-ID: <3F297526.2020006@shaw.ca> This might work Assuming you have an ADO Data control called Ado1 - you can put up two input boxes and get the params you want - set the CommandType and RecordSource properties of the ADO Data control in code by which you pass the parameters to the SQL stored procedure. Make sure that you put some dummy parameters in for the RecordSource property in design mode which you can null out in code before setting the RecordSource property again. Dim intCustomers As Integer Dim lngPeriod As Long intCustomers = InputBox("Customer :", "Enter a Value") lngPeriod = InputBox("Date YYYYMMDD:", "Enter Date") strRecordSource = "MyProcData;1(" & intCustomers & "," & lngPeriod & ")" 'watch wrap and spaces Ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DatabaseName;Data Source=YourMachineName" Ado1.ConnectionTimeout = 30 Ado1.CommandType = adCmdStoredProc Ado1.RecordSource = "" Ado1.RecordSource = strRecordSource Ado1.Refresh paul.hartland at fsmail.net wrote: >To all, > >I have a SQL Server 7.0 BE, with a Visual Basic 6 FE. In SQl Server 7.0 I have a stored procedure which requires two parameters (Payroll, JobDate) and this returns all the jobs that a person is programmed to do. On my VB6 FE I have a form with a DataGrid and an ADO Control, with the Datagrid pointing to the ADO Control for it's datasource. When the form opens I want to pass the payroll and jobdate to the SQL Server stored procedure and return the results to the ADO Control which will then be displayed in the DataGrid. > >Is there anyone out there that can tell me how to do this, or has some sample code that I could look at to show me exactly how this can be acheived. > >Thanks in advance. > >Paul Hartland > >__________________________________________________________________________ >Join Freeserve http://www.freeserve.com/time/ > >Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com