From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] [AccessD] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 jcolby at colbyconsulting.com Mon Sep 1 21:36:09 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 22:36:09 -0400 Subject: [dba-VB] [AccessD] Cool little app In-Reply-To: Message-ID: Well, I got both the Whois and the IP lookup working. Nice little tool. The article discusses turning it into a dll (for use in a web page) but apparently my vb.net compiler isn't in my path because I get a "not found" when I try to do the compile. sigh 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 John Colby Sent: Monday, September 01, 2003 9:59 PM To: VBA; AccessD Subject: [dba-VB] [AccessD] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com _______________________________________________ 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 DWUTKA at marlow.com Tue Sep 2 09:49:21 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 09:49:21 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 Tue Sep 2 10:00:29 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 2 Sep 2003 11:00:29 -0400 Subject: [dba-VB] Cool little app In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> Message-ID: Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Sep 2 11:05:08 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 11:05:08 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227137@main2.marlow.com> No, it's VB 6.0. I don't have .net (nor do I really have an interest at this time...grin). I just sent you my first edition of the article we wrote. I don't think I can send you the actual article, since it was published with ElementK. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, September 02, 2003 10:00 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Cool little app Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ 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 Mon Sep 8 09:44:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 8 Sep 2003 16:44:35 +0200 (CEST) Subject: [dba-VB] Creating an Export Dialog Message-ID: <26116633.1063032275422.JavaMail.www@wwinf3006.me-wanadoo.net> To all, I'm building a Visual Basic 6 application, and want to build an Export dialog that looks the same as the ShowOpen & Showsave (when using the CommonDialog control)...having never used treeviews etc before how can this be done ? Has anyone got any sample code etc that I may look at to get me started on creating the Export dialog...? Thanks for any help in advance. Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 10 05:24:25 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 10 Sep 2003 12:24:25 +0200 (CEST) Subject: [dba-VB] SubForms in Visual Basic 6 Message-ID: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikedorism at ntelos.net Wed Sep 10 14:01:40 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 10 Sep 2003 15:01:40 -0400 Subject: [dba-VB] SubForms in Visual Basic 6 In-Reply-To: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> Message-ID: <000701c377cd$fb5f1760$da390cd8@hargrove.internal> To replace a datasheet or continuous form, I use a DataGrid. To replace a single record Form, I create my own VB control with the controls I want and set up properties within the VB control that let me interact with it in terms of requerying, etc. 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: Wednesday, September 10, 2003 6:24 AM To: dba-vb Subject: [dba-VB] SubForms in Visual Basic 6 To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] [AccessD] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 11 06:19:02 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:19:02 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60E6C6.28061.2D4B661@localhost> Sorry, I sent this to accessd instead of dba-vb the first time. On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > On 11 Sep 2003 at 12:40, paul.hartland at fsmail.net wrote: > > > To all, > > I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. > > Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... > > MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type > > Anyone have any ideas ? > > Thanks in advance for any help received....... > > Paul Hartland > > Database Designer/Programmer > > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > > You will see things like: > dbBigInt = 16 > dbBinary = 9 > dbBooelan = 1 > dbByte = 2 > dbChar = 18 > dbCurrency = 5 > dbDate = 8 > dbDecimal = 20 > dbDouble = 7 > dbFloat = 21 > dbGUID = 15 > dbInteger = 3 > dbLong = 4 > dbMemo = 12 > dbNumeric = 19 > dbSingle = 6 > dbText = 10 > dbTime = 22 > dbTimestamp = 23 > > > > -- > 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 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- 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 martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > From martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 11 19:29:53 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Sep 2003 17:29:53 -0700 Subject: [dba-VB] Getting Field Type From ADO Control In-Reply-To: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: Hi Paul: Using a slightly different approach you could check to see if it is a number or string. if not isnull((TheEnteredValue) then if isnumber(TheEnteredValue) then if int(TheEnteredValue) = TheEnteredValue then if abs(TheEnteredValue) 32768 > then msgbox "TheEnteredValue is a long" else msgbox "TheEnteredValue is a integer" end if else msgbox "TheEnteredValue is a double number" end if else msgbox "TheEnteredValue is a string" end if end if HTH Jim -----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, September 11, 2003 3:40 AM To: dba-vb Cc: accessd Subject: [dba-VB] Getting Field Type From ADO Control To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] [AccessD] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Sep 12 10:10:19 2003 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 12 Sep 2003 11:10:19 -0400 Subject: [dba-VB] Re: Linking Word Doc To Access Table via Visual Basic 6 Message-ID: Paul, You should be able to set the merge source of the Word document/template using the doc.MailMerge.DataSource properties, were doc is a Word.Document object I don't have any more info than that (since I've never tried anything like this), but it shouldn't be too hard to figure out by looking at the current MailMerge properties. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> paul.hartland at fsmail.net 12-Sep-03 5:56:58 AM >>> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland From tortise at paradise.net.nz Wed Sep 17 15:52:04 2003 From: tortise at paradise.net.nz (Tortise@Paradise) Date: Thu, 18 Sep 2003 08:52:04 +1200 Subject: [dba-VB] VB 5 - creating E-mails as a user References: Message-ID: <00e201c37d5d$8d4f4980$0900a8c0@P1200n> Hi What code do I need to set up so that users can send E-mail from within their logged on "secure" areas by the click of a button to a specified E-Mail address. Perhaps with subject and body also completed? My code works fine for administrators, but for users it fails in both Outlook and Outlook Express. The line I currently use is: Call RunShellExecute("open", mailto:xxx at yyyyy.com?subject=ZZZZZ & eSubject, 0&, 0&, 10) Any assistance or suggestions will be greatly appreciated. TIA and Kind regards, David From liz.carter at shaw.ca Tue Sep 23 22:29:15 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 20:29:15 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? Message-ID: <000101c3824c$082391a0$2802a8c0@scooby> Hi, I have a VBA question for Word 2000 and hope someone here can either answer it or tell me a good place to go for an answer. I have a template with form fields on it and would like to access the value of the currently active form field from code. Is this possible? If so. how. Thanks very much in advance for any help. Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Tue Sep 23 23:14:03 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Sep 2003 21:14:03 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? References: <000101c3824c$082391a0$2802a8c0@scooby> Message-ID: <3F711A0B.30604@shaw.ca> Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >------------------------------------------------------------------------ > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > From liz.carter at shaw.ca Tue Sep 23 23:56:09 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 21:56:09 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? In-Reply-To: <3F711A0B.30604@shaw.ca> Message-ID: <000501c38258$2b6750f0$2802a8c0@scooby> Thanks very much, I found what I needed in the word FAQs section. Liz -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: September 23, 2003 9:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Does this newsgroup answer VBA questions too? Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >----------------------------------------------------------------------- - > >_______________________________________________ >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 Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] [AccessD] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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 Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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". *********************************************************************************** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Wed Sep 24 16:11:48 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 24 Sep 2003 17:11:48 -0400 Subject: [dba-VB] Need help passing Null value to DateTimePicker in .NET In-Reply-To: <3F71E7E3.7020602@shaw.ca> Message-ID: <001801c382e0$7b39da20$463d0cd8@hargrove.internal> Leave it to Microsoft not to imagine a DateTimePicker being bound to a null value. Anybody got code for how to get around this? Thanks, Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From bkollodge at parkindustries.com Mon Sep 29 11:56:24 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Mon, 29 Sep 2003 11:56:24 -0500 Subject: [dba-VB] Detecting an Open File Message-ID: Can anyone tell me how to detect if a specific file number is already open (besides dealing with the error 55 which results)? Bill Kollodge New Product Development Park Industries St. Cloud, MN 320-251-5077 bkollodge at parkindustries.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Mon Sep 29 14:49:48 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 Sep 2003 12:49:48 -0700 Subject: [dba-VB] Detecting an Open File References: Message-ID: <3F788CDC.3060406@shaw.ca> if you know the filename you could try This is from MSKB Last reviewed: August 1, 1997 Article ID: Q172240 but they seem to have removed the KB article. Note if you try this with Notebook to open the file, Notebook only takes a copy and then releases the file. The function described here is called IsFileAlreadyOpen, declared as: Function IsFileAlreadyOpen(Filename As String) As BOOLEAN If this function returns TRUE, then the file is already open. It determines that the file is already open only if it gets ERROR_SHARING_VIOLATION when it attempts to open the file. It will return FALSE in the following conditions: - The file is not already open. - The calling application does not have access to the file due to NTFS security. - The file does not exist. You should check if the file exists before calling the function to eliminate the possibility of the latter condition. Sample Code: Microsoft Visual Basic version of IsFileAlreadyOpen ---------------------------------------------------------------- ' Declaration for APIs used by our function... Private Declare Function lopen Lib "kernel32" Alias "_lopen" (ByVal lpPathName As String, ByVal iReadWrite As Long) As Long Private Declare Function GetLastError Lib "kernel32" () As Long Private Declare Function lclose Lib "kernel32" Alias "_lclose" (ByVal hFile As Long) As Long ' Our Function... Function IsFileAlreadyOpen(Filename As String) As Boolean Dim hFile As Long Dim lastErr As Long ' Initialize file handle and error variable. hFile = -1 lastErr = 0 ' Open for for read and exclusive sharing. hFile = lopen(Filename, &H10) ' If we couldn't open the file, get the last error. If hFile = -1 Then lastErr = Err.LastDllError ' Make sure we close the file on success. Else lclose (hFile) End If ' Check for sharing violation error. If (hFile = -1) And (lastErr = 32) Then IsFileAlreadyOpen = True Else IsFileAlreadyOpen = False End If Bill Kollodge wrote: > Can anyone tell me how to detect if a specific file number is already > open (besides dealing with the error 55 which results)? > > Bill Kollodge > New Product Development > Park Industries > St. Cloud, MN > 320-251-5077 > bkollodge at parkindustries.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 Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] [AccessD] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Tue Sep 30 06:32:30 2003 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 30 Sep 2003 21:32:30 +1000 Subject: [dba-VB] OT - Registrering DLL's In-Reply-To: <16626259.1064921087446.JavaMail.www@wwinf3004> Message-ID: <001301c38746$888c6a70$0c05a8c0@carlton.local> Paul, The quickest way is to save the file into their C:\Windows\System32 directory and then: Click: Start|Run and type in regsvr32 vbsendmail.dll and click OK You don't have to put in the path unless it is a DLL outside of the System directory... HTH Regards Vlad -----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: Tuesday, 30 September 2003 9:25 PM To: accessd Cc: dba-vb Subject: [dba-VB] OT - Registrering DLL's To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] [AccessD] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 jcolby at colbyconsulting.com Mon Sep 1 21:36:09 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 22:36:09 -0400 Subject: [dba-VB] [AccessD] Cool little app In-Reply-To: Message-ID: Well, I got both the Whois and the IP lookup working. Nice little tool. The article discusses turning it into a dll (for use in a web page) but apparently my vb.net compiler isn't in my path because I get a "not found" when I try to do the compile. sigh 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 John Colby Sent: Monday, September 01, 2003 9:59 PM To: VBA; AccessD Subject: [dba-VB] [AccessD] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com _______________________________________________ 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 DWUTKA at marlow.com Tue Sep 2 09:49:21 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 09:49:21 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 Tue Sep 2 10:00:29 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 2 Sep 2003 11:00:29 -0400 Subject: [dba-VB] Cool little app In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> Message-ID: Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Sep 2 11:05:08 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 11:05:08 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227137@main2.marlow.com> No, it's VB 6.0. I don't have .net (nor do I really have an interest at this time...grin). I just sent you my first edition of the article we wrote. I don't think I can send you the actual article, since it was published with ElementK. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, September 02, 2003 10:00 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Cool little app Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ 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 Mon Sep 8 09:44:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 8 Sep 2003 16:44:35 +0200 (CEST) Subject: [dba-VB] Creating an Export Dialog Message-ID: <26116633.1063032275422.JavaMail.www@wwinf3006.me-wanadoo.net> To all, I'm building a Visual Basic 6 application, and want to build an Export dialog that looks the same as the ShowOpen & Showsave (when using the CommonDialog control)...having never used treeviews etc before how can this be done ? Has anyone got any sample code etc that I may look at to get me started on creating the Export dialog...? Thanks for any help in advance. Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 10 05:24:25 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 10 Sep 2003 12:24:25 +0200 (CEST) Subject: [dba-VB] SubForms in Visual Basic 6 Message-ID: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikedorism at ntelos.net Wed Sep 10 14:01:40 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 10 Sep 2003 15:01:40 -0400 Subject: [dba-VB] SubForms in Visual Basic 6 In-Reply-To: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> Message-ID: <000701c377cd$fb5f1760$da390cd8@hargrove.internal> To replace a datasheet or continuous form, I use a DataGrid. To replace a single record Form, I create my own VB control with the controls I want and set up properties within the VB control that let me interact with it in terms of requerying, etc. 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: Wednesday, September 10, 2003 6:24 AM To: dba-vb Subject: [dba-VB] SubForms in Visual Basic 6 To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] [AccessD] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 11 06:19:02 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:19:02 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60E6C6.28061.2D4B661@localhost> Sorry, I sent this to accessd instead of dba-vb the first time. On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > On 11 Sep 2003 at 12:40, paul.hartland at fsmail.net wrote: > > > To all, > > I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. > > Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... > > MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type > > Anyone have any ideas ? > > Thanks in advance for any help received....... > > Paul Hartland > > Database Designer/Programmer > > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > > You will see things like: > dbBigInt = 16 > dbBinary = 9 > dbBooelan = 1 > dbByte = 2 > dbChar = 18 > dbCurrency = 5 > dbDate = 8 > dbDecimal = 20 > dbDouble = 7 > dbFloat = 21 > dbGUID = 15 > dbInteger = 3 > dbLong = 4 > dbMemo = 12 > dbNumeric = 19 > dbSingle = 6 > dbText = 10 > dbTime = 22 > dbTimestamp = 23 > > > > -- > 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 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- 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 martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > From martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 11 19:29:53 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Sep 2003 17:29:53 -0700 Subject: [dba-VB] Getting Field Type From ADO Control In-Reply-To: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: Hi Paul: Using a slightly different approach you could check to see if it is a number or string. if not isnull((TheEnteredValue) then if isnumber(TheEnteredValue) then if int(TheEnteredValue) = TheEnteredValue then if abs(TheEnteredValue) 32768 > then msgbox "TheEnteredValue is a long" else msgbox "TheEnteredValue is a integer" end if else msgbox "TheEnteredValue is a double number" end if else msgbox "TheEnteredValue is a string" end if end if HTH Jim -----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, September 11, 2003 3:40 AM To: dba-vb Cc: accessd Subject: [dba-VB] Getting Field Type From ADO Control To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] [AccessD] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Sep 12 10:10:19 2003 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 12 Sep 2003 11:10:19 -0400 Subject: [dba-VB] Re: Linking Word Doc To Access Table via Visual Basic 6 Message-ID: Paul, You should be able to set the merge source of the Word document/template using the doc.MailMerge.DataSource properties, were doc is a Word.Document object I don't have any more info than that (since I've never tried anything like this), but it shouldn't be too hard to figure out by looking at the current MailMerge properties. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> paul.hartland at fsmail.net 12-Sep-03 5:56:58 AM >>> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland From tortise at paradise.net.nz Wed Sep 17 15:52:04 2003 From: tortise at paradise.net.nz (Tortise@Paradise) Date: Thu, 18 Sep 2003 08:52:04 +1200 Subject: [dba-VB] VB 5 - creating E-mails as a user References: Message-ID: <00e201c37d5d$8d4f4980$0900a8c0@P1200n> Hi What code do I need to set up so that users can send E-mail from within their logged on "secure" areas by the click of a button to a specified E-Mail address. Perhaps with subject and body also completed? My code works fine for administrators, but for users it fails in both Outlook and Outlook Express. The line I currently use is: Call RunShellExecute("open", mailto:xxx at yyyyy.com?subject=ZZZZZ & eSubject, 0&, 0&, 10) Any assistance or suggestions will be greatly appreciated. TIA and Kind regards, David From liz.carter at shaw.ca Tue Sep 23 22:29:15 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 20:29:15 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? Message-ID: <000101c3824c$082391a0$2802a8c0@scooby> Hi, I have a VBA question for Word 2000 and hope someone here can either answer it or tell me a good place to go for an answer. I have a template with form fields on it and would like to access the value of the currently active form field from code. Is this possible? If so. how. Thanks very much in advance for any help. Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Tue Sep 23 23:14:03 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Sep 2003 21:14:03 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? References: <000101c3824c$082391a0$2802a8c0@scooby> Message-ID: <3F711A0B.30604@shaw.ca> Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >------------------------------------------------------------------------ > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > From liz.carter at shaw.ca Tue Sep 23 23:56:09 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 21:56:09 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? In-Reply-To: <3F711A0B.30604@shaw.ca> Message-ID: <000501c38258$2b6750f0$2802a8c0@scooby> Thanks very much, I found what I needed in the word FAQs section. Liz -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: September 23, 2003 9:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Does this newsgroup answer VBA questions too? Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >----------------------------------------------------------------------- - > >_______________________________________________ >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 Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] [AccessD] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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 Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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". *********************************************************************************** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Wed Sep 24 16:11:48 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 24 Sep 2003 17:11:48 -0400 Subject: [dba-VB] Need help passing Null value to DateTimePicker in .NET In-Reply-To: <3F71E7E3.7020602@shaw.ca> Message-ID: <001801c382e0$7b39da20$463d0cd8@hargrove.internal> Leave it to Microsoft not to imagine a DateTimePicker being bound to a null value. Anybody got code for how to get around this? Thanks, Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From bkollodge at parkindustries.com Mon Sep 29 11:56:24 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Mon, 29 Sep 2003 11:56:24 -0500 Subject: [dba-VB] Detecting an Open File Message-ID: Can anyone tell me how to detect if a specific file number is already open (besides dealing with the error 55 which results)? Bill Kollodge New Product Development Park Industries St. Cloud, MN 320-251-5077 bkollodge at parkindustries.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Mon Sep 29 14:49:48 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 Sep 2003 12:49:48 -0700 Subject: [dba-VB] Detecting an Open File References: Message-ID: <3F788CDC.3060406@shaw.ca> if you know the filename you could try This is from MSKB Last reviewed: August 1, 1997 Article ID: Q172240 but they seem to have removed the KB article. Note if you try this with Notebook to open the file, Notebook only takes a copy and then releases the file. The function described here is called IsFileAlreadyOpen, declared as: Function IsFileAlreadyOpen(Filename As String) As BOOLEAN If this function returns TRUE, then the file is already open. It determines that the file is already open only if it gets ERROR_SHARING_VIOLATION when it attempts to open the file. It will return FALSE in the following conditions: - The file is not already open. - The calling application does not have access to the file due to NTFS security. - The file does not exist. You should check if the file exists before calling the function to eliminate the possibility of the latter condition. Sample Code: Microsoft Visual Basic version of IsFileAlreadyOpen ---------------------------------------------------------------- ' Declaration for APIs used by our function... Private Declare Function lopen Lib "kernel32" Alias "_lopen" (ByVal lpPathName As String, ByVal iReadWrite As Long) As Long Private Declare Function GetLastError Lib "kernel32" () As Long Private Declare Function lclose Lib "kernel32" Alias "_lclose" (ByVal hFile As Long) As Long ' Our Function... Function IsFileAlreadyOpen(Filename As String) As Boolean Dim hFile As Long Dim lastErr As Long ' Initialize file handle and error variable. hFile = -1 lastErr = 0 ' Open for for read and exclusive sharing. hFile = lopen(Filename, &H10) ' If we couldn't open the file, get the last error. If hFile = -1 Then lastErr = Err.LastDllError ' Make sure we close the file on success. Else lclose (hFile) End If ' Check for sharing violation error. If (hFile = -1) And (lastErr = 32) Then IsFileAlreadyOpen = True Else IsFileAlreadyOpen = False End If Bill Kollodge wrote: > Can anyone tell me how to detect if a specific file number is already > open (besides dealing with the error 55 which results)? > > Bill Kollodge > New Product Development > Park Industries > St. Cloud, MN > 320-251-5077 > bkollodge at parkindustries.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 Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] [AccessD] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Tue Sep 30 06:32:30 2003 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 30 Sep 2003 21:32:30 +1000 Subject: [dba-VB] OT - Registrering DLL's In-Reply-To: <16626259.1064921087446.JavaMail.www@wwinf3004> Message-ID: <001301c38746$888c6a70$0c05a8c0@carlton.local> Paul, The quickest way is to save the file into their C:\Windows\System32 directory and then: Click: Start|Run and type in regsvr32 vbsendmail.dll and click OK You don't have to put in the path unless it is a DLL outside of the System directory... HTH Regards Vlad -----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: Tuesday, 30 September 2003 9:25 PM To: accessd Cc: dba-vb Subject: [dba-VB] OT - Registrering DLL's To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] [AccessD] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 jcolby at colbyconsulting.com Mon Sep 1 21:36:09 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 22:36:09 -0400 Subject: [dba-VB] [AccessD] Cool little app In-Reply-To: Message-ID: Well, I got both the Whois and the IP lookup working. Nice little tool. The article discusses turning it into a dll (for use in a web page) but apparently my vb.net compiler isn't in my path because I get a "not found" when I try to do the compile. sigh 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 John Colby Sent: Monday, September 01, 2003 9:59 PM To: VBA; AccessD Subject: [dba-VB] [AccessD] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com _______________________________________________ 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 DWUTKA at marlow.com Tue Sep 2 09:49:21 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 09:49:21 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 Tue Sep 2 10:00:29 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 2 Sep 2003 11:00:29 -0400 Subject: [dba-VB] Cool little app In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> Message-ID: Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Sep 2 11:05:08 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 11:05:08 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227137@main2.marlow.com> No, it's VB 6.0. I don't have .net (nor do I really have an interest at this time...grin). I just sent you my first edition of the article we wrote. I don't think I can send you the actual article, since it was published with ElementK. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, September 02, 2003 10:00 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Cool little app Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ 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 Mon Sep 8 09:44:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 8 Sep 2003 16:44:35 +0200 (CEST) Subject: [dba-VB] Creating an Export Dialog Message-ID: <26116633.1063032275422.JavaMail.www@wwinf3006.me-wanadoo.net> To all, I'm building a Visual Basic 6 application, and want to build an Export dialog that looks the same as the ShowOpen & Showsave (when using the CommonDialog control)...having never used treeviews etc before how can this be done ? Has anyone got any sample code etc that I may look at to get me started on creating the Export dialog...? Thanks for any help in advance. Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 10 05:24:25 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 10 Sep 2003 12:24:25 +0200 (CEST) Subject: [dba-VB] SubForms in Visual Basic 6 Message-ID: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikedorism at ntelos.net Wed Sep 10 14:01:40 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 10 Sep 2003 15:01:40 -0400 Subject: [dba-VB] SubForms in Visual Basic 6 In-Reply-To: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> Message-ID: <000701c377cd$fb5f1760$da390cd8@hargrove.internal> To replace a datasheet or continuous form, I use a DataGrid. To replace a single record Form, I create my own VB control with the controls I want and set up properties within the VB control that let me interact with it in terms of requerying, etc. 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: Wednesday, September 10, 2003 6:24 AM To: dba-vb Subject: [dba-VB] SubForms in Visual Basic 6 To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] [AccessD] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 11 06:19:02 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:19:02 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60E6C6.28061.2D4B661@localhost> Sorry, I sent this to accessd instead of dba-vb the first time. On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > On 11 Sep 2003 at 12:40, paul.hartland at fsmail.net wrote: > > > To all, > > I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. > > Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... > > MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type > > Anyone have any ideas ? > > Thanks in advance for any help received....... > > Paul Hartland > > Database Designer/Programmer > > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > > You will see things like: > dbBigInt = 16 > dbBinary = 9 > dbBooelan = 1 > dbByte = 2 > dbChar = 18 > dbCurrency = 5 > dbDate = 8 > dbDecimal = 20 > dbDouble = 7 > dbFloat = 21 > dbGUID = 15 > dbInteger = 3 > dbLong = 4 > dbMemo = 12 > dbNumeric = 19 > dbSingle = 6 > dbText = 10 > dbTime = 22 > dbTimestamp = 23 > > > > -- > 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 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- 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 martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > From martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 11 19:29:53 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Sep 2003 17:29:53 -0700 Subject: [dba-VB] Getting Field Type From ADO Control In-Reply-To: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: Hi Paul: Using a slightly different approach you could check to see if it is a number or string. if not isnull((TheEnteredValue) then if isnumber(TheEnteredValue) then if int(TheEnteredValue) = TheEnteredValue then if abs(TheEnteredValue) 32768 > then msgbox "TheEnteredValue is a long" else msgbox "TheEnteredValue is a integer" end if else msgbox "TheEnteredValue is a double number" end if else msgbox "TheEnteredValue is a string" end if end if HTH Jim -----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, September 11, 2003 3:40 AM To: dba-vb Cc: accessd Subject: [dba-VB] Getting Field Type From ADO Control To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] [AccessD] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Sep 12 10:10:19 2003 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 12 Sep 2003 11:10:19 -0400 Subject: [dba-VB] Re: Linking Word Doc To Access Table via Visual Basic 6 Message-ID: Paul, You should be able to set the merge source of the Word document/template using the doc.MailMerge.DataSource properties, were doc is a Word.Document object I don't have any more info than that (since I've never tried anything like this), but it shouldn't be too hard to figure out by looking at the current MailMerge properties. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> paul.hartland at fsmail.net 12-Sep-03 5:56:58 AM >>> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland From tortise at paradise.net.nz Wed Sep 17 15:52:04 2003 From: tortise at paradise.net.nz (Tortise@Paradise) Date: Thu, 18 Sep 2003 08:52:04 +1200 Subject: [dba-VB] VB 5 - creating E-mails as a user References: Message-ID: <00e201c37d5d$8d4f4980$0900a8c0@P1200n> Hi What code do I need to set up so that users can send E-mail from within their logged on "secure" areas by the click of a button to a specified E-Mail address. Perhaps with subject and body also completed? My code works fine for administrators, but for users it fails in both Outlook and Outlook Express. The line I currently use is: Call RunShellExecute("open", mailto:xxx at yyyyy.com?subject=ZZZZZ & eSubject, 0&, 0&, 10) Any assistance or suggestions will be greatly appreciated. TIA and Kind regards, David From liz.carter at shaw.ca Tue Sep 23 22:29:15 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 20:29:15 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? Message-ID: <000101c3824c$082391a0$2802a8c0@scooby> Hi, I have a VBA question for Word 2000 and hope someone here can either answer it or tell me a good place to go for an answer. I have a template with form fields on it and would like to access the value of the currently active form field from code. Is this possible? If so. how. Thanks very much in advance for any help. Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Tue Sep 23 23:14:03 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Sep 2003 21:14:03 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? References: <000101c3824c$082391a0$2802a8c0@scooby> Message-ID: <3F711A0B.30604@shaw.ca> Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >------------------------------------------------------------------------ > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > From liz.carter at shaw.ca Tue Sep 23 23:56:09 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 21:56:09 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? In-Reply-To: <3F711A0B.30604@shaw.ca> Message-ID: <000501c38258$2b6750f0$2802a8c0@scooby> Thanks very much, I found what I needed in the word FAQs section. Liz -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: September 23, 2003 9:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Does this newsgroup answer VBA questions too? Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >----------------------------------------------------------------------- - > >_______________________________________________ >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 Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] [AccessD] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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 Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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". *********************************************************************************** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Wed Sep 24 16:11:48 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 24 Sep 2003 17:11:48 -0400 Subject: [dba-VB] Need help passing Null value to DateTimePicker in .NET In-Reply-To: <3F71E7E3.7020602@shaw.ca> Message-ID: <001801c382e0$7b39da20$463d0cd8@hargrove.internal> Leave it to Microsoft not to imagine a DateTimePicker being bound to a null value. Anybody got code for how to get around this? Thanks, Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From bkollodge at parkindustries.com Mon Sep 29 11:56:24 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Mon, 29 Sep 2003 11:56:24 -0500 Subject: [dba-VB] Detecting an Open File Message-ID: Can anyone tell me how to detect if a specific file number is already open (besides dealing with the error 55 which results)? Bill Kollodge New Product Development Park Industries St. Cloud, MN 320-251-5077 bkollodge at parkindustries.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Mon Sep 29 14:49:48 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 Sep 2003 12:49:48 -0700 Subject: [dba-VB] Detecting an Open File References: Message-ID: <3F788CDC.3060406@shaw.ca> if you know the filename you could try This is from MSKB Last reviewed: August 1, 1997 Article ID: Q172240 but they seem to have removed the KB article. Note if you try this with Notebook to open the file, Notebook only takes a copy and then releases the file. The function described here is called IsFileAlreadyOpen, declared as: Function IsFileAlreadyOpen(Filename As String) As BOOLEAN If this function returns TRUE, then the file is already open. It determines that the file is already open only if it gets ERROR_SHARING_VIOLATION when it attempts to open the file. It will return FALSE in the following conditions: - The file is not already open. - The calling application does not have access to the file due to NTFS security. - The file does not exist. You should check if the file exists before calling the function to eliminate the possibility of the latter condition. Sample Code: Microsoft Visual Basic version of IsFileAlreadyOpen ---------------------------------------------------------------- ' Declaration for APIs used by our function... Private Declare Function lopen Lib "kernel32" Alias "_lopen" (ByVal lpPathName As String, ByVal iReadWrite As Long) As Long Private Declare Function GetLastError Lib "kernel32" () As Long Private Declare Function lclose Lib "kernel32" Alias "_lclose" (ByVal hFile As Long) As Long ' Our Function... Function IsFileAlreadyOpen(Filename As String) As Boolean Dim hFile As Long Dim lastErr As Long ' Initialize file handle and error variable. hFile = -1 lastErr = 0 ' Open for for read and exclusive sharing. hFile = lopen(Filename, &H10) ' If we couldn't open the file, get the last error. If hFile = -1 Then lastErr = Err.LastDllError ' Make sure we close the file on success. Else lclose (hFile) End If ' Check for sharing violation error. If (hFile = -1) And (lastErr = 32) Then IsFileAlreadyOpen = True Else IsFileAlreadyOpen = False End If Bill Kollodge wrote: > Can anyone tell me how to detect if a specific file number is already > open (besides dealing with the error 55 which results)? > > Bill Kollodge > New Product Development > Park Industries > St. Cloud, MN > 320-251-5077 > bkollodge at parkindustries.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 Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] [AccessD] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Tue Sep 30 06:32:30 2003 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 30 Sep 2003 21:32:30 +1000 Subject: [dba-VB] OT - Registrering DLL's In-Reply-To: <16626259.1064921087446.JavaMail.www@wwinf3004> Message-ID: <001301c38746$888c6a70$0c05a8c0@carlton.local> Paul, The quickest way is to save the file into their C:\Windows\System32 directory and then: Click: Start|Run and type in regsvr32 vbsendmail.dll and click OK You don't have to put in the path unless it is a DLL outside of the System directory... HTH Regards Vlad -----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: Tuesday, 30 September 2003 9:25 PM To: accessd Cc: dba-vb Subject: [dba-VB] OT - Registrering DLL's To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com From jcolby at colbyconsulting.com Mon Sep 1 20:58:55 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 21:58:55 -0400 Subject: [dba-VB] [AccessD] Cool little app Message-ID: For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 jcolby at colbyconsulting.com Mon Sep 1 21:36:09 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 1 Sep 2003 22:36:09 -0400 Subject: [dba-VB] [AccessD] Cool little app In-Reply-To: Message-ID: Well, I got both the Whois and the IP lookup working. Nice little tool. The article discusses turning it into a dll (for use in a web page) but apparently my vb.net compiler isn't in my path because I get a "not found" when I try to do the compile. sigh 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 John Colby Sent: Monday, September 01, 2003 9:59 PM To: VBA; AccessD Subject: [dba-VB] [AccessD] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. John W. Colby www.colbyconsulting.com _______________________________________________ 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 DWUTKA at marlow.com Tue Sep 2 09:49:21 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 09:49:21 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 Tue Sep 2 10:00:29 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 2 Sep 2003 11:00:29 -0400 Subject: [dba-VB] Cool little app In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227134@main2.marlow.com> Message-ID: Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Sep 2 11:05:08 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Sep 2003 11:05:08 -0500 Subject: [dba-VB] Cool little app Message-ID: <2F8793082E00D4119A1700B0D0216BF802227137@main2.marlow.com> No, it's VB 6.0. I don't have .net (nor do I really have an interest at this time...grin). I just sent you my first edition of the article we wrote. I don't think I can send you the actual article, since it was published with ElementK. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, September 02, 2003 10:00 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Cool little app Is it .net based? You might be interested in looking at the two functions which do this stuff for this article to contrast for yourself the effort involved using different design tools. I continue to be impressed with the small amount of code required to do things "the .net way". Of course I haven't seen your code. 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 Drew Wutka Sent: Tuesday, September 02, 2003 10:49 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Cool little app ironically, I wrote an article about doing this with Susan. http://wolfwares.com/whoistest.asp uses the code I put in the article. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 01, 2003 8:59 PM To: VBA; AccessD Subject: [dba-VB] Cool little app For anyone interested, an article I stumbled across that demonstrates using .net to lookup ip addresses. http://msdn.microsoft.com/msdnmag/issues/02/04/Virus/default.aspx I cut and pasted the two classes and built a form to use the MyWhois to lookup an ip address. For whatever reason I am only able to lookup IP addresses (passing in a True as the last value), I'll be looking at this more closely later. I'd love to get the lookup working on my web page - anyone who wants to help me in that regard give me a shout offline. With all the discussion on Security going around the group lately those interested parties might want to read this article. It discusses the IIS logs which show hack attempts. 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 _______________________________________________ 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 Mon Sep 8 09:44:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 8 Sep 2003 16:44:35 +0200 (CEST) Subject: [dba-VB] Creating an Export Dialog Message-ID: <26116633.1063032275422.JavaMail.www@wwinf3006.me-wanadoo.net> To all, I'm building a Visual Basic 6 application, and want to build an Export dialog that looks the same as the ShowOpen & Showsave (when using the CommonDialog control)...having never used treeviews etc before how can this be done ? Has anyone got any sample code etc that I may look at to get me started on creating the Export dialog...? Thanks for any help in advance. Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 10 05:24:25 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 10 Sep 2003 12:24:25 +0200 (CEST) Subject: [dba-VB] SubForms in Visual Basic 6 Message-ID: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikedorism at ntelos.net Wed Sep 10 14:01:40 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 10 Sep 2003 15:01:40 -0400 Subject: [dba-VB] SubForms in Visual Basic 6 In-Reply-To: <32967617.1063189465651.JavaMail.www@wwinf3004.me-wanadoo.net> Message-ID: <000701c377cd$fb5f1760$da390cd8@hargrove.internal> To replace a datasheet or continuous form, I use a DataGrid. To replace a single record Form, I create my own VB control with the controls I want and set up properties within the VB control that let me interact with it in terms of requerying, etc. 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: Wednesday, September 10, 2003 6:24 AM To: dba-vb Subject: [dba-VB] SubForms in Visual Basic 6 To all, I have never had to use subforms in visual basic 6 as yet, but now I've come to my very first project where I need one...... I have a parent form which contains the name & address etc of our employees, then I need a sub form showing Sickdays and Holidays like below Paul Hartland 999 Lets Be Avenue 0121 000 0000 01/01/03 03/01/03 3 Virus 04/05/03 04/05/03 1 Migrane and so on, I suppose I could use two grids, so I need to know what would be the best way of doing this ?.......subform (which I need help on how to do them, or grids which I may also need help with) Paul I love deadlines, it's something about the whooshing sound they make as they fly by. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Thu Sep 11 05:40:23 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Sep 2003 12:40:23 +0200 (CEST) Subject: [dba-VB] [AccessD] Getting Field Type From ADO Control Message-ID: <2362278.1063276823117.JavaMail.www@wwinf3001> To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 11 06:19:02 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:19:02 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60E6C6.28061.2D4B661@localhost> Sorry, I sent this to accessd instead of dba-vb the first time. On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > On 11 Sep 2003 at 12:40, paul.hartland at fsmail.net wrote: > > > To all, > > I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. > > Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... > > MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type > > Anyone have any ideas ? > > Thanks in advance for any help received....... > > Paul Hartland > > Database Designer/Programmer > > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > > You will see things like: > dbBigInt = 16 > dbBinary = 9 > dbBooelan = 1 > dbByte = 2 > dbChar = 18 > dbCurrency = 5 > dbDate = 8 > dbDecimal = 20 > dbDouble = 7 > dbFloat = 21 > dbGUID = 15 > dbInteger = 3 > dbLong = 4 > dbMemo = 12 > dbNumeric = 19 > dbSingle = 6 > dbText = 10 > dbTime = 22 > dbTimestamp = 23 > > > > -- > 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 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Sep 11 06:36:16 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Sep 2003 21:36:16 +1000 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control In-Reply-To: <3F60E466.21719.2CB6F53@localhost> References: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: <3F60EAD0.10935.2E47D6E@localhost> On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > Field types are enumerated constants. > > In your VB project, set a reference to DAO then open the Object > Browser. > > Open the DAO library and look at Globals. > Just noticed, you said ADO, not DAO. ADO Constants have different values. ie dbBigInt = 16, adBigInt = 20 dbBinary = 9, adBinary = 128 dbBoolean = 1, adBoolean = 11 etc. You will ned to set the reference to ADO , not DAO to get the correct values -- 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 martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > From martyconnelly at shaw.ca Thu Sep 11 17:40:04 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 Sep 2003 15:40:04 -0700 Subject: [dba-VB] Re: [AccessD] Getting Field Type From ADO Control References: <2362278.1063276823117.JavaMail.www@wwinf3001> <3F60EAD0.10935.2E47D6E@localhost> Message-ID: <3F60F9C4.2010901@shaw.ca> Here is a list of ADO constants for their field type http://www.able-consulting.com/ADODataTypeEnum.htm Stuart McLachlan wrote: >On 11 Sep 2003 at 21:08, Stuart McLachlan wrote: > > > >>Field types are enumerated constants. >> >>In your VB project, set a reference to DAO then open the Object >>Browser. >> >>Open the DAO library and look at Globals. >> >> >> > >Just noticed, you said ADO, not DAO. > >ADO Constants have different values. > >ie >dbBigInt = 16, adBigInt = 20 >dbBinary = 9, adBinary = 128 >dbBoolean = 1, adBoolean = 11 >etc. > >You will ned to set the reference to ADO , not DAO to get the correct >values > > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 11 19:29:53 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Sep 2003 17:29:53 -0700 Subject: [dba-VB] Getting Field Type From ADO Control In-Reply-To: <2362278.1063276823117.JavaMail.www@wwinf3001> Message-ID: Hi Paul: Using a slightly different approach you could check to see if it is a number or string. if not isnull((TheEnteredValue) then if isnumber(TheEnteredValue) then if int(TheEnteredValue) = TheEnteredValue then if abs(TheEnteredValue) 32768 > then msgbox "TheEnteredValue is a long" else msgbox "TheEnteredValue is a integer" end if else msgbox "TheEnteredValue is a double number" end if else msgbox "TheEnteredValue is a string" end if end if HTH Jim -----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, September 11, 2003 3:40 AM To: dba-vb Cc: accessd Subject: [dba-VB] Getting Field Type From ADO Control To all, I have a field selection box in a find form that I have created myself, but what I need to know is what datatype the field is that the user selects. Has anyone ever done this and can tell me how....I tried the following line of code which runs through all the fields but it returns a number...... MsgBox frmPersonnel.ADOPersonnel.Recordset.Fields(fldCounter).Type Anyone have any ideas ? Thanks in advance for any help received....... Paul Hartland Database Designer/Programmer -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Fri Sep 12 04:56:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Sep 2003 11:56:58 +0200 (CEST) Subject: [dba-VB] [AccessD] Linking Word Doc To Access Table via Visual Basic 6 Message-ID: <25407199.1063360618070.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Fri Sep 12 10:10:19 2003 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 12 Sep 2003 11:10:19 -0400 Subject: [dba-VB] Re: Linking Word Doc To Access Table via Visual Basic 6 Message-ID: Paul, You should be able to set the merge source of the Word document/template using the doc.MailMerge.DataSource properties, were doc is a Word.Document object I don't have any more info than that (since I've never tried anything like this), but it shouldn't be too hard to figure out by looking at the current MailMerge properties. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> paul.hartland at fsmail.net 12-Sep-03 5:56:58 AM >>> To all, I have a Visual Basic 6 application that allows a user to select people for mailmerge then puts them into a temporary table so that they can carry out the mailing. I also have an option where they can select and open the word document that they will use. Is there a way I can allow the user to select the document that they want to use, then automatically link that document to the temporary table ? I am using Office XP...... Thanks in advance for any help on this..... Paul Hartland From tortise at paradise.net.nz Wed Sep 17 15:52:04 2003 From: tortise at paradise.net.nz (Tortise@Paradise) Date: Thu, 18 Sep 2003 08:52:04 +1200 Subject: [dba-VB] VB 5 - creating E-mails as a user References: Message-ID: <00e201c37d5d$8d4f4980$0900a8c0@P1200n> Hi What code do I need to set up so that users can send E-mail from within their logged on "secure" areas by the click of a button to a specified E-Mail address. Perhaps with subject and body also completed? My code works fine for administrators, but for users it fails in both Outlook and Outlook Express. The line I currently use is: Call RunShellExecute("open", mailto:xxx at yyyyy.com?subject=ZZZZZ & eSubject, 0&, 0&, 10) Any assistance or suggestions will be greatly appreciated. TIA and Kind regards, David From liz.carter at shaw.ca Tue Sep 23 22:29:15 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 20:29:15 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? Message-ID: <000101c3824c$082391a0$2802a8c0@scooby> Hi, I have a VBA question for Word 2000 and hope someone here can either answer it or tell me a good place to go for an answer. I have a template with form fields on it and would like to access the value of the currently active form field from code. Is this possible? If so. how. Thanks very much in advance for any help. Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Tue Sep 23 23:14:03 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Sep 2003 21:14:03 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? References: <000101c3824c$082391a0$2802a8c0@scooby> Message-ID: <3F711A0B.30604@shaw.ca> Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >------------------------------------------------------------------------ > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > From liz.carter at shaw.ca Tue Sep 23 23:56:09 2003 From: liz.carter at shaw.ca (Liz Carter) Date: Tue, 23 Sep 2003 21:56:09 -0700 Subject: [dba-VB] Does this newsgroup answer VBA questions too? In-Reply-To: <3F711A0B.30604@shaw.ca> Message-ID: <000501c38258$2b6750f0$2802a8c0@scooby> Thanks very much, I found what I needed in the word FAQs section. Liz -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: September 23, 2003 9:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Does this newsgroup answer VBA questions too? Have a look through Helen Feddema's site http://www.helenfeddema.com/access.htm or http://www.helenfeddema.com/CodeSamples.htm or this site http://www.mvps.org/word/FAQs/index.htm Liz Carter wrote: > Hi, > > I have a VBA question for Word 2000 and hope someone here can either > answer it or tell me a good place to go for an answer. I have a > template with form fields on it and would like to access the value of > the currently active form field from code. Is this possible? If so& how. > > Thanks very much in advance for any help. > > Liz > >----------------------------------------------------------------------- - > >_______________________________________________ >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 Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 24 08:24:41 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 15:24:41 +0200 (CEST) Subject: [dba-VB] [AccessD] Anyone Used vbSendMail or know how to detect incoming email ? Message-ID: <29794171.1064409881962.JavaMail.www@wwinf3006> To all, I have the vbSendMail.dll component I use in all my Visual Basic 6 applications and have used it without any problem what so ever. However I can't seem to see any options for the following. 1. I need to detect incoming emails to a certain address 2. Check the subject to see if it says "File For Import" Can this be done using vbSendMail.dll or can it be done another way. If so any chance of some sample code etc ? Thanks in advance for any help on this problem.... Paul Hartland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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 Jdemarco at hshhp.org Wed Sep 24 11:40:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 24 Sep 2003 12:40:19 -0400 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> x-posted Accessd dba-VB I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: Dim cnn As ADODB.Connection Dim rs As ADODB.Recordset Set cnn = New Connection cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ "SourceType=DBF;" & _ "SourceDB=\\Data\Persnl.DBF;" & _ "Exclusive=No" Debug.Print cnn.State Set rs = New ADODB.Recordset 'Set rs = cnn.Execute("Select * from Persnl") rs.Open "Persnl", cnn Debug.Print rs.RecordCount Set rs = Nothing Set cnn = Nothing The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). TIA, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "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". *********************************************************************************** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 Wed Sep 24 13:52:19 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 24 Sep 2003 11:52:19 -0700 Subject: [dba-VB] [AccessD] Slightly OT: FoxPro Tables via ADO References: <22F1CCD5171D17419CB37FEEE09D5F990173F5E9@TTNEXCHSRV1.hshhp.com> Message-ID: <3F71E7E3.7020602@shaw.ca> Are you using Jet SP-7 that corrects some ISAM driver problems http://support.microsoft.com/?kbid=282010 also check here http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForVisualFoxPro Jim DeMarco wrote: >x-posted Accessd dba-VB > >I'm trying to programmatically access data stored in FoxPro 7 tables (I'm told by the vendor that this is Visual FoxPro). I can open an ADO connection using ODBC as follows: > > >Dim cnn As ADODB.Connection >Dim rs As ADODB.Recordset > Set cnn = New Connection > cnn.Open "Driver={Microsoft Visual FoxPro Driver};" & _ > "SourceType=DBF;" & _ > "SourceDB=\\Data\Persnl.DBF;" & _ > "Exclusive=No" > Debug.Print cnn.State > Set rs = New ADODB.Recordset > 'Set rs = cnn.Execute("Select * from Persnl") > rs.Open "Persnl", cnn > Debug.Print rs.RecordCount > Set rs = Nothing > Set cnn = Nothing > > >The Connection State property returns a 1 which I believe means the connection is open. The question is how to loop through the Persnl.dbf table? The call to open the recordset fails with an error from the FP driver saying "unrecognized command verb". > >I also found and downloaded a VFP 8.0 oledb driver and similar code gives me this error: "The object invoked has disconnected from its clients" > >Does anyone have any experience with this? We're trying to get some of our HR info up our intranet and this is how it's stored. I'm going to be using a VB app to run an export from VFP otherwise I'd just link to an Access system to pull the data (which may be the best way at this point). > >TIA, > >Jim DeMarco >Director of Product Development >HealthSource/Hudson Health Plan > > >*********************************************************************************** >"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". >*********************************************************************************** > >_______________________________________________ >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 > > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at ntelos.net Wed Sep 24 16:11:48 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 24 Sep 2003 17:11:48 -0400 Subject: [dba-VB] Need help passing Null value to DateTimePicker in .NET In-Reply-To: <3F71E7E3.7020602@shaw.ca> Message-ID: <001801c382e0$7b39da20$463d0cd8@hargrove.internal> Leave it to Microsoft not to imagine a DateTimePicker being bound to a null value. Anybody got code for how to get around this? Thanks, Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From bkollodge at parkindustries.com Mon Sep 29 11:56:24 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Mon, 29 Sep 2003 11:56:24 -0500 Subject: [dba-VB] Detecting an Open File Message-ID: Can anyone tell me how to detect if a specific file number is already open (besides dealing with the error 55 which results)? Bill Kollodge New Product Development Park Industries St. Cloud, MN 320-251-5077 bkollodge at parkindustries.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyconnelly at shaw.ca Mon Sep 29 14:49:48 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 Sep 2003 12:49:48 -0700 Subject: [dba-VB] Detecting an Open File References: Message-ID: <3F788CDC.3060406@shaw.ca> if you know the filename you could try This is from MSKB Last reviewed: August 1, 1997 Article ID: Q172240 but they seem to have removed the KB article. Note if you try this with Notebook to open the file, Notebook only takes a copy and then releases the file. The function described here is called IsFileAlreadyOpen, declared as: Function IsFileAlreadyOpen(Filename As String) As BOOLEAN If this function returns TRUE, then the file is already open. It determines that the file is already open only if it gets ERROR_SHARING_VIOLATION when it attempts to open the file. It will return FALSE in the following conditions: - The file is not already open. - The calling application does not have access to the file due to NTFS security. - The file does not exist. You should check if the file exists before calling the function to eliminate the possibility of the latter condition. Sample Code: Microsoft Visual Basic version of IsFileAlreadyOpen ---------------------------------------------------------------- ' Declaration for APIs used by our function... Private Declare Function lopen Lib "kernel32" Alias "_lopen" (ByVal lpPathName As String, ByVal iReadWrite As Long) As Long Private Declare Function GetLastError Lib "kernel32" () As Long Private Declare Function lclose Lib "kernel32" Alias "_lclose" (ByVal hFile As Long) As Long ' Our Function... Function IsFileAlreadyOpen(Filename As String) As Boolean Dim hFile As Long Dim lastErr As Long ' Initialize file handle and error variable. hFile = -1 lastErr = 0 ' Open for for read and exclusive sharing. hFile = lopen(Filename, &H10) ' If we couldn't open the file, get the last error. If hFile = -1 Then lastErr = Err.LastDllError ' Make sure we close the file on success. Else lclose (hFile) End If ' Check for sharing violation error. If (hFile = -1) And (lastErr = 32) Then IsFileAlreadyOpen = True Else IsFileAlreadyOpen = False End If Bill Kollodge wrote: > Can anyone tell me how to detect if a specific file number is already > open (besides dealing with the error 55 which results)? > > Bill Kollodge > New Product Development > Park Industries > St. Cloud, MN > 320-251-5077 > bkollodge at parkindustries.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 Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Tue Sep 30 06:24:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Sep 2003 13:24:47 +0200 (CEST) Subject: [dba-VB] [AccessD] OT - Registrering DLL's Message-ID: <16626259.1064921087446.JavaMail.www@wwinf3004> To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Tue Sep 30 06:32:30 2003 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 30 Sep 2003 21:32:30 +1000 Subject: [dba-VB] OT - Registrering DLL's In-Reply-To: <16626259.1064921087446.JavaMail.www@wwinf3004> Message-ID: <001301c38746$888c6a70$0c05a8c0@carlton.local> Paul, The quickest way is to save the file into their C:\Windows\System32 directory and then: Click: Start|Run and type in regsvr32 vbsendmail.dll and click OK You don't have to put in the path unless it is a DLL outside of the System directory... HTH Regards Vlad -----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: Tuesday, 30 September 2003 9:25 PM To: accessd Cc: dba-vb Subject: [dba-VB] OT - Registrering DLL's To all, We have windows 2000 servers with XP Pro Desktops, and have developed an application thats used by all users in the office (about 30 at any one time). We have just added the vbSendMail.dll to the application (test version). The executable is on the server so that when we update that everyone has the new version, except for the fact that they won't be able to use the email facility as they won't have the vbSendMail.dll registered. Is there anyway we can register the dll onto their machines without having to re-install the application onto everyones machine ?. Can this be done, if so thanks for any help in advance. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: