From Erwin.Craps at ithelps.be Wed Sep 1 01:14:44 2004
From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps)
Date: Wed, 1 Sep 2004 08:14:44 +0200
Subject: [AccessD] A2K:Determine OS and version via VBA - Solved
thanksGustav and Stuart
Message-ID: <46B976F2B698FF46A4FE7636509B22DF0ADB51@stekelbes.ithelps.local>
It is advised to put the MDE on the local computer of the client, so all
network users use their own MDE file.
Thats always good for several reasons already discusses in the mailing
list, but I want to point out that there are some weirder things with
Access 2003 references than we are used with 2K.
References some times need to be disabled and re-enabled before the
apllications works.
In case you have different Access versions running in the same site, a
MDE file on the user local computer is a must due to these references.
Erwin
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK
Sent: Wednesday, September 01, 2004 5:25 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] A2K:Determine OS and version via VBA - Solved
thanksGustav and Stuart
Gustav and Stuart
Many thanks to you both
Both sets of code Work like a charm
Many thanks to you both
Have a great day
Darren
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Tuesday, 31 August 2004 9:57 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] A2K:Determine OS and version via VBA
Hi Darren
> I used to have a little code jewel from the list tucked away in my own
> personal little archive that would allow me to determine the OS in
> VBA- But alas since the death of the laptop my personal stash has gone
> So....Anyone got any code to determine the OS and version?
We use this module:
Option Compare Database
Option Explicit
' Major Minor
' OS Platform Version Version Build
'
' Windows 95 1 4 0
' Windows 98 1 4 10 1998
' Windows 98SE 1 4 10 2222
' Windows ME 1 4 90 3000
' NT 3.51 2 3 51
' NT 2 4 0 1381
' 2000 2 5 0
' XP 2 5 1 2600
' Server 2003 2 5 2
' Code based on MS API documentation.
' 2004-07-02. Assembled by Cactus Data ApS, CPH.
Private Const VER_PLATFORM_WIN32s As Long = 0 ' Win32s on
Windows
3.1x.
Private Const VER_PLATFORM_WIN32_WINDOWS As Long = 1 ' Windows 95,
Windows 98, Windows ME.
Private Const VER_PLATFORM_WIN32_NT As Long = 2 ' Windows NT,
Windows 2000, Windows XP, Windows Server 2003.
Private Const clngCSDVersion As Long = 128
Private Type OSVERSIONINFO
dwOSVersionInfoSize As Long
dwMajorVersion As Long
dwMinorVersion As Long
dwBuildNumber As Long
dwPlatformId As Long
szCSDVersion As String * clngCSDVersion
End Type
Private Declare Function GetVersionEx Lib "kernel32" Alias
"GetVersionExA"
( _
ByRef lpVersionInformation As OSVERSIONINFO) _
As Long
Public Function GetVersion() As String
' Retrieves version of current Windows OS.
' Returns version as full string.
'
' 2004-07-02. Cactus Data ApS, CPH.
Dim OSV As OSVERSIONINFO
Dim strVersion As String
OSV.dwOSVersionInfoSize = Len(OSV)
OSV.szCSDVersion = Space$(clngCSDVersion)
GetVersionEx OSV
With OSV
' Service Pack info string.
Debug.Print .szCSDVersion
Select Case .dwPlatformId
Case VER_PLATFORM_WIN32s ' Win32s on Windows 3.1x.
strVersion = "Windows 3.1"
Case VER_PLATFORM_WIN32_WINDOWS ' Windows 95, Windows 98,
Select Case .dwMinorVersion ' Windows ME.
Case 0
strVersion = "Windows 95"
Case 10
If (.dwBuildNumber And &HFFFF&) = 2222 Then
strVersion = "Windows 98SE"
Else
strVersion = "Windows 98"
End If
Case 90
strVersion = "Windows ME"
End Select
Case VER_PLATFORM_WIN32_NT ' Windows NT, Windows 2000,
Windows
XP,
Select Case .dwMajorVersion ' Windows Server 2003.
Case 3
strVersion = "Windows NT 3.51"
Case 4
strVersion = "Windows NT 4.0"
Case 5
Select Case .dwMinorVersion
Case 0
strVersion = "Windows 2000"
Case 1
strVersion = "Windows XP"
Case 2
strVersion = "Windows Server 2003"
End Select
End Select
Case Else
strVersion = "Unknown"
End Select
End With
GetVersion = strVersion
End Function
Public Function IsWinXP() As Boolean
' Checks current Windows OS.
' Returns True if OS is Win XP or Server 2003.
'
' 2004-07-07. Cactus Data ApS, CPH.
Dim OSV As OSVERSIONINFO
Dim booVersion As Boolean
OSV.dwOSVersionInfoSize = Len(OSV)
GetVersionEx OSV
With OSV
Select Case .dwPlatformId
Case VER_PLATFORM_WIN32_NT ' Windows NT, Windows 2000,
Windows
XP,
Select Case .dwMajorVersion ' Windows Server 2003.
Case 5
Select Case .dwMinorVersion
Case 0
' strVersion = "Windows 2000"
Case 1
' strVersion = "Windows XP"
booVersion = True
Case 2
' strVersion = "Windows Server 2003"
booVersion = True
End Select
End Select
End Select
End With
IsWinXP = booVersion
End Function
Have fun!
/gustav
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From Erwin.Craps at ithelps.be Wed Sep 1 02:56:08 2004
From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps)
Date: Wed, 1 Sep 2004 09:56:08 +0200
Subject: [AccessD] A2K:Determine OS and version via VBA -
SolvedthanksGustav and Stuart
Message-ID: <46B976F2B698FF46A4FE7636509B22DF0ADB52@stekelbes.ithelps.local>
Ignore my previous message, it was intended for another issue....
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps -
IT Helps
Sent: Wednesday, September 01, 2004 8:15 AM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] A2K:Determine OS and version via VBA -
SolvedthanksGustav and Stuart
It is advised to put the MDE on the local computer of the client, so all
network users use their own MDE file.
Thats always good for several reasons already discusses in the mailing
list, but I want to point out that there are some weirder things with
Access 2003 references than we are used with 2K.
References some times need to be disabled and re-enabled before the
apllications works.
In case you have different Access versions running in the same site, a
MDE file on the user local computer is a must due to these references.
Erwin
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK
Sent: Wednesday, September 01, 2004 5:25 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] A2K:Determine OS and version via VBA - Solved
thanksGustav and Stuart
Gustav and Stuart
Many thanks to you both
Both sets of code Work like a charm
Many thanks to you both
Have a great day
Darren
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Tuesday, 31 August 2004 9:57 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] A2K:Determine OS and version via VBA
Hi Darren
> I used to have a little code jewel from the list tucked away in my own
> personal little archive that would allow me to determine the OS in
> VBA- But alas since the death of the laptop my personal stash has gone
> So....Anyone got any code to determine the OS and version?
We use this module:
Option Compare Database
Option Explicit
' Major Minor
' OS Platform Version Version Build
'
' Windows 95 1 4 0
' Windows 98 1 4 10 1998
' Windows 98SE 1 4 10 2222
' Windows ME 1 4 90 3000
' NT 3.51 2 3 51
' NT 2 4 0 1381
' 2000 2 5 0
' XP 2 5 1 2600
' Server 2003 2 5 2
' Code based on MS API documentation.
' 2004-07-02. Assembled by Cactus Data ApS, CPH.
Private Const VER_PLATFORM_WIN32s As Long = 0 ' Win32s on
Windows
3.1x.
Private Const VER_PLATFORM_WIN32_WINDOWS As Long = 1 ' Windows 95,
Windows 98, Windows ME.
Private Const VER_PLATFORM_WIN32_NT As Long = 2 ' Windows NT,
Windows 2000, Windows XP, Windows Server 2003.
Private Const clngCSDVersion As Long = 128
Private Type OSVERSIONINFO
dwOSVersionInfoSize As Long
dwMajorVersion As Long
dwMinorVersion As Long
dwBuildNumber As Long
dwPlatformId As Long
szCSDVersion As String * clngCSDVersion
End Type
Private Declare Function GetVersionEx Lib "kernel32" Alias
"GetVersionExA"
( _
ByRef lpVersionInformation As OSVERSIONINFO) _
As Long
Public Function GetVersion() As String
' Retrieves version of current Windows OS.
' Returns version as full string.
'
' 2004-07-02. Cactus Data ApS, CPH.
Dim OSV As OSVERSIONINFO
Dim strVersion As String
OSV.dwOSVersionInfoSize = Len(OSV)
OSV.szCSDVersion = Space$(clngCSDVersion)
GetVersionEx OSV
With OSV
' Service Pack info string.
Debug.Print .szCSDVersion
Select Case .dwPlatformId
Case VER_PLATFORM_WIN32s ' Win32s on Windows 3.1x.
strVersion = "Windows 3.1"
Case VER_PLATFORM_WIN32_WINDOWS ' Windows 95, Windows 98,
Select Case .dwMinorVersion ' Windows ME.
Case 0
strVersion = "Windows 95"
Case 10
If (.dwBuildNumber And &HFFFF&) = 2222 Then
strVersion = "Windows 98SE"
Else
strVersion = "Windows 98"
End If
Case 90
strVersion = "Windows ME"
End Select
Case VER_PLATFORM_WIN32_NT ' Windows NT, Windows 2000,
Windows
XP,
Select Case .dwMajorVersion ' Windows Server 2003.
Case 3
strVersion = "Windows NT 3.51"
Case 4
strVersion = "Windows NT 4.0"
Case 5
Select Case .dwMinorVersion
Case 0
strVersion = "Windows 2000"
Case 1
strVersion = "Windows XP"
Case 2
strVersion = "Windows Server 2003"
End Select
End Select
Case Else
strVersion = "Unknown"
End Select
End With
GetVersion = strVersion
End Function
Public Function IsWinXP() As Boolean
' Checks current Windows OS.
' Returns True if OS is Win XP or Server 2003.
'
' 2004-07-07. Cactus Data ApS, CPH.
Dim OSV As OSVERSIONINFO
Dim booVersion As Boolean
OSV.dwOSVersionInfoSize = Len(OSV)
GetVersionEx OSV
With OSV
Select Case .dwPlatformId
Case VER_PLATFORM_WIN32_NT ' Windows NT, Windows 2000,
Windows
XP,
Select Case .dwMajorVersion ' Windows Server 2003.
Case 5
Select Case .dwMinorVersion
Case 0
' strVersion = "Windows 2000"
Case 1
' strVersion = "Windows XP"
booVersion = True
Case 2
' strVersion = "Windows Server 2003"
booVersion = True
End Select
End Select
End Select
End With
IsWinXP = booVersion
End Function
Have fun!
/gustav
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From Erwin.Craps at ithelps.be Wed Sep 1 02:56:20 2004
From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps)
Date: Wed, 1 Sep 2004 09:56:20 +0200
Subject: [AccessD] Will an A2K MDE run unde A2003?
Message-ID: <46B976F2B698FF46A4FE7636509B22DF0ADB53@stekelbes.ithelps.local>
It is advised to put the MDE on the local computer of the client, so all
network users use their own MDE file.
Thats always good for several reasons already discusses in the mailing
list, but I want to point out that there are some weirder things with
Access 2003 references than we are used with 2K.
References some times need to be disabled and re-enabled before the
apllications works.
In case you have different Access versions running in the same site, a
MDE file on the user local computer is a must due to these references.
Erwin
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin
- Beach Access Software
Sent: Wednesday, September 01, 2004 5:48 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Will an A2K MDE run unde A2003?
For my market having Access is quite common. So it's not really an
issue.
I've got Wise and could, I suppose, get the Sagekey script for A2K. But
that's already 2 versions behind the latest.
I understand that A2003 has a pretty decent deployment facility. Yes?
If this prospect wants the software and it will only run in A2003 I'll
get A2003, and then I'll have a chance to test the deployment features.
Rocky
----- Original Message -----
From: "Francisco Tapia"
To: "Access Developers discussion and problem solving"
Sent: Tuesday, August 31, 2004 5:03 PM
Subject: Re: [AccessD] Will an A2K MDE run unde A2003?
> I am curious as to why you don't deploy it w/ a runtime?, I mean you
> don't have it as opensource to allow the customer to work w/ the app.
>
> On Tue, 31 Aug 2004 16:40:07 -0700, Rocky Smolin - Beach Access
> Software wrote:
> > Dear List:
> >
> > I have to call a guy tomorrow morning and tell him whether my
software
will work in Access 2003. I compile it into an MDE under Access 2000.
I
know that MDE will run under Access 2002. Will the MDE run in 2003?
> >
> > I also have Access 2002 which I could use to make an MDE. Would an
MDE
compiled under Access 2002 run under Access 2003?
> >
>
> --
> -Francisco
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From accessd at shaw.ca Wed Sep 1 01:44:59 2004
From: accessd at shaw.ca (Jim Lawrence (AccessD))
Date: Tue, 31 Aug 2004 23:44:59 -0700
Subject: [AccessD] Slightly OT: HTTPS question
In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74089AF3@TTNEXCHCL2.hshhp.com>
Message-ID:
Hi Jim:
I do not know wether this is an issue with you but a client was having some
problems with their version of IE. It turned out to be a proxy issue and
nothing to do with the browser. Their proxy client was not properly setup or
was not installed.
HTH
Jim
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco
Sent: Monday, August 30, 2004 10:32 AM
To: AccessD (E-mail)
Subject: [AccessD] Slightly OT: HTTPS question
List,
Does anyone know if IE 5xx has any issues with accessing https sites? I'm
pretty sure I can get them on my home PC but I've got a laptop here at the
office that serves up "page not found" errors on two of our sites (one a web
app, the other a Citrix server).
Thanks,
Jim DeMarco
Director Application Development
Hudson Health Plan
Tarrytown, NY
****************************************************************************
*******
"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 1 01:48:48 2004
From: martyconnelly at shaw.ca (MartyConnelly)
Date: Tue, 31 Aug 2004 23:48:48 -0700
Subject: [AccessD] Will an A2K MDE run unde A2003?
References: <001701c48fb3$d92f7320$6601a8c0@HAL9002>
<00f801c48fd6$6f473f10$6601a8c0@HAL9002>
Message-ID: <413570D0.8010209@shaw.ca>
SageKey has an MSI deployment script for Access 2003. $400 It also
removes the need for a digital certificate.
which might prove to be a problem or just a nuisance with Access 2000
MDE running under 2003.
I guess you will find out.
Rocky Smolin - Beach Access Software wrote:
>For my market having Access is quite common. So it's not really an issue.
>I've got Wise and could, I suppose, get the Sagekey script for A2K. But
>that's already 2 versions behind the latest.
>
>I understand that A2003 has a pretty decent deployment facility. Yes?
>
>If this prospect wants the software and it will only run in A2003 I'll get
>A2003, and then I'll have a chance to test the deployment features.
>
>Rocky
>
>----- Original Message -----
>From: "Francisco Tapia"
>To: "Access Developers discussion and problem solving"
>
>Sent: Tuesday, August 31, 2004 5:03 PM
>Subject: Re: [AccessD] Will an A2K MDE run unde A2003?
>
>
>
>
>>I am curious as to why you don't deploy it w/ a runtime?, I mean you
>>don't have it as opensource to allow the customer to work w/ the app.
>>
>>On Tue, 31 Aug 2004 16:40:07 -0700, Rocky Smolin - Beach Access
>>Software wrote:
>>
>>
>>>Dear List:
>>>
>>>I have to call a guy tomorrow morning and tell him whether my software
>>>
>>>
>will work in Access 2003. I compile it into an MDE under Access 2000. I
>know that MDE will run under Access 2002. Will the MDE run in 2003?
>
>
>>>I also have Access 2002 which I could use to make an MDE. Would an MDE
>>>
>>>
>compiled under Access 2002 run under Access 2003?
>
>
>>--
>>-Francisco
>>--
>>_______________________________________________
>>AccessD mailing list
>>AccessD at databaseadvisors.com
>>http://databaseadvisors.com/mailman/listinfo/accessd
>>Website: http://www.databaseadvisors.com
>>
>>
>>
>
>
>
--
Marty Connelly
Victoria, B.C.
Canada
From andy at minstersystems.co.uk Wed Sep 1 05:26:30 2004
From: andy at minstersystems.co.uk (Andy Lacey)
Date: Wed, 1 Sep 2004 11:26:30 +0100
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
Message-ID: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
Francisco
I'd go with your OnTimer idea. I think all of the other obvious events will
fire before the form is fully displayed.
-- Andy Lacey
http://www.minstersystems.co.uk
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
> Francisco Tapia
> Sent: 31 August 2004 23:32
> To: Access Developers discussion and problem solving
> Subject: [AccessD] Prompt after Form loads
>
>
> I have a form which autoloads data to some unbound controls.
> I have a need to prompt the user if he wants to overwrite
> some fields w/ defaults. However since the "IF" is in the
> form_load event it prompts before the form is fully loaded,
> thus the user can't make an informed decision.
>
> Any idea how to do this? on timer, then disable it?
> --
> -Francisco
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/a> ccessd
> Website:
> http://www.databaseadvisors.com
>
>
From gustav at cactus.dk Wed Sep 1 05:34:56 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 12:34:56 +0200
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
Message-ID: <4314961823.20040901123456@cactus.dk>
Hi Andy and Francisco
I would suggest OnCurrent.
To prevent multiple prompts, set a static flag:
Static booIsPrompted As Boolean
If booIsPrompted = False Then
' Ask if you user wish to load data.
booIsPrompted = True
End If
/gustav
> Francisco
> I'd go with your OnTimer idea. I think all of the other obvious events will
> fire before the form is fully displayed.
> -- Andy Lacey
> http://www.minstersystems.co.uk
>> I have a form which autoloads data to some unbound controls.
>> I have a need to prompt the user if he wants to overwrite
>> some fields w/ defaults. However since the "IF" is in the
>> form_load event it prompts before the form is fully loaded,
>> thus the user can't make an informed decision.
From Jdemarco at hudsonhealthplan.org Wed Sep 1 07:08:24 2004
From: Jdemarco at hudsonhealthplan.org (Jim DeMarco)
Date: Wed, 1 Sep 2004 08:08:24 -0400
Subject: [AccessD] Slightly OT: HTTPS question
Message-ID: <08F823FD83787D4BA0B99CA580AD3C74089B12@TTNEXCHCL2.hshhp.com>
Interesting. How would I check this out?
Thanks,
Jim D.
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence
(AccessD)
Sent: Wednesday, September 01, 2004 2:45 AM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] Slightly OT: HTTPS question
Hi Jim:
I do not know wether this is an issue with you but a client was having some
problems with their version of IE. It turned out to be a proxy issue and
nothing to do with the browser. Their proxy client was not properly setup or
was not installed.
HTH
Jim
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco
Sent: Monday, August 30, 2004 10:32 AM
To: AccessD (E-mail)
Subject: [AccessD] Slightly OT: HTTPS question
List,
Does anyone know if IE 5xx has any issues with accessing https sites? I'm
pretty sure I can get them on my home PC but I've got a laptop here at the
office that serves up "page not found" errors on two of our sites (one a web
app, the other a Citrix server).
Thanks,
Jim DeMarco
Director Application Development
Hudson Health Plan
Tarrytown, NY
****************************************************************************
*******
"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
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You".
***********************************************************************************
From cyx5 at cdc.gov Wed Sep 1 07:18:57 2004
From: cyx5 at cdc.gov (Nicholson, Karen)
Date: Wed, 1 Sep 2004 08:18:57 -0400
Subject: [AccessD] Get User Name
Message-ID:
It is great to be back on the list and working with Access again. It
has been a while. I am looking for the user defined function to grab
the network user name or id. I have inherited an Access 2002/SQL 2000
back-end database run completely by macros with a pretty bad password
scenario. This should keep me busy for a while.
Karen Nicholson
National Laboratory
Xerox Global Services
From bheid at appdevgrp.com Wed Sep 1 07:33:40 2004
From: bheid at appdevgrp.com (Bobby Heid)
Date: Wed, 1 Sep 2004 08:33:40 -0400
Subject: [AccessD] Get User Name
In-Reply-To: <916187228923D311A6FE00A0CC3FAA30962AAD@ADGSERVER>
Message-ID: <916187228923D311A6FE00A0CC3FAA305BB7AD@ADGSERVER>
Hi Karen,
I use this (note that I did not write this):
Private Declare Function GetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
' Returns the network login name or 'Admin' if api call fails
Public Function GetOSUserName() As String
Dim lngLen As Long
Dim lngX As Long
Dim strUserName As String
On Error GoTo Proc_Err
strUserName = String$(254, 0)
lngLen = 255
lngX = GetUserName(strUserName, lngLen)
If lngX <> 0 Then
GetOSUserName = Left$(strUserName, lngLen - 1)
Else
GetOSUserName = "ADMIN"
End If
Proc_Exit:
Exit Function
Proc_Err:
MsgBox Err.Number & " - " & Err.Description, vbExclamation + vbOKOnly ,
"GetOSUserName"
Resume Proc_Exit
End Function
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen
Sent: Wednesday, September 01, 2004 8:19 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Get User Name
It is great to be back on the list and working with Access again. It has
been a while. I am looking for the user defined function to grab the
network user name or id. I have inherited an Access 2002/SQL 2000 back-end
database run completely by macros with a pretty bad password scenario. This
should keep me busy for a while.
Karen Nicholson
National Laboratory
Xerox Global Services
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From stuart at lexacorp.com.pg Wed Sep 1 07:35:01 2004
From: stuart at lexacorp.com.pg (Stuart McLachlan)
Date: Wed, 01 Sep 2004 22:35:01 +1000
Subject: [AccessD] Get User Name
In-Reply-To:
Message-ID: <41364E95.3834.4E48C09@lexacorp.com.pg>
On 1 Sep 2004 at 8:18, Nicholson, Karen wrote:
> It is great to be back on the list and working with Access again. It
> has been a while. I am looking for the user defined function to grab
> the network user name or id. I have inherited an Access 2002/SQL 2000
> back-end database run completely by macros with a pretty bad password
> scenario. This should keep me busy for a while.
>
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal
lpBuffer As String, nSize As Long) As Long
Function UserName() As String
Dim strUName As String
Dim lngResponse As Long
UNAME = Space$(32)
lngResponse = GetUserName(strUName, 32)
strUName = Trim$(strUName)
UserName = Left$(strUName, Len(strUName) - 1) 'strip Chr$(0) from end of
name
End Function
--
Stuart
From carbonnb at gmail.com Wed Sep 1 07:57:06 2004
From: carbonnb at gmail.com (Bryan Carbonnell)
Date: Wed, 1 Sep 2004 08:57:06 -0400
Subject: [AccessD] Get User Name
In-Reply-To:
References:
Message-ID:
On Wed, 1 Sep 2004 08:18:57 -0400, Nicholson, Karen wrote:
> It is great to be back on the list and working with Access again. It
> has been a while. I am looking for the user defined function to grab
> the network user name or id. I have inherited an Access 2002/SQL 2000
> back-end database run completely by macros with a pretty bad password
> scenario. This should keep me busy for a while.
The functions that Bobby and Stuart posted are fine for a windows
network, but if you are on a Novell network this will get you the
NovellID
'*+ Module API declarations
Private Declare Function NWCallsInit Lib "calwin32" _
(reserved1 As Byte, reserved2 As Byte) As Long
Private Declare Function NWDSCreateContextHandle Lib "netwin32" _
(newHandle As Long) As Long
Private Declare Function NWDSWhoAmI Lib "netwin32" _
(ByVal context As Long, ByVal objectName As String) As Long
Private Declare Function NWDSFreeContext Lib "netwin32" _
(ByVal context As Long) As Long
'*- Module API declarations
Function fGetNovellUserName() As String
'--------------------------------------------------------------------------
'.Purpose : To get Novell User Name
'.Author : Bryan Carbonnell
'.Date : 3-May-2002
'.Called by : frmUser Form_Open Event
'.Calls : NWCallsInit - API
'. NWDSCreateContextHandle - API
'. NWDSFreeContext - API
'.Revised : 3-May-2002 - Original
'--------------------------------------------------------------------------
On Error GoTo fGetNovellUserName_Error
Dim lngContextCode As Long
Dim lngContext As Long
Dim strMyName As String
' allocate space for user name
On Error GoTo fGetNovellUserName_Error
strMyName = Space(255)
' initialize NetWare client
lngContextCode = NWCallsInit(0, 0)
If lngContextCode <> 0 Then
'NW Client cannot be initialised, so we can't get the User Name
fGetNovellUserName = "NWCallsInit() - Cannot initialize"
Else
' a context is req'd for all NDS functions
lngContextCode = NWDSCreateContextHandle(lngContext)
If lngContextCode = 0 Then
'We have a valid Context, so we can do stuff
' now, get my name
lngContextCode = NWDSWhoAmI(lngContext, strMyName)
'Change to return username
If lngContextCode = 0 Then
strMyName = Left(strMyName, (InStr(strMyName, Chr(0)) - 1))
strMyName = Mid(strMyName, 4)
fGetNovellUserName = strMyName
End If
' clean-up
lngContextCode = NWDSFreeContext(lngContext)
End If
End If
Exit_fGetNovellUserName:
On Error GoTo 0
Exit Function
'Error Handler
fGetNovellUserName_Error:
'Display Error Message
MsgBox "Error " & Err.Number & " (" & Err.Description & _
") in procedure " & .ProcedureName & " of " & .ModuleName
'Exit the procedure properly
Resume Exit_fGetNovellUserName
'For Debugging
Resume
End Function
--
Bryan Carbonnell - carbonnb at gmail.com
Life's journey is not to arrive at the grave safely in a well
preserved body, but rather to skid in sideways, totally worn out,
shouting "What a great ride!"
From markamatte at hotmail.com Wed Sep 1 08:29:40 2004
From: markamatte at hotmail.com (Mark A Matte)
Date: Wed, 01 Sep 2004 13:29:40 +0000
Subject: [AccessD] Every 100th record
Message-ID:
Arthur,
First...congrats on the new contract...second...for this contract...do the
queries you are optimizing need to be real time... or can they be on data
prior to today(or what is the acceptable lag time)?
Just curious...
Thanks,
Mark
>From: "Arthur Fuller"
>Reply-To: Access Developers discussion and problem
>solving
>To: "'Access Developers discussion and problem
>solving'"
>Subject: RE: [AccessD] Every 100th record
>Date: Tue, 31 Aug 2004 19:32:55 -0400
>
>Just to put things in perspective, JC, the first client of the people
>who developed MySQL had 60M rows in their principal table. There are
>lots of apps way bigger than that. I once had a client that was adding
>10M rows per month to the table of concern (this was an app recording
>seismic activity from several hundred meters). I must caution you that
>you should not use the term VLDB as loosely as you have been using it.
>You don't know the meaning of VLDB -- not yet at least. You're beginning
>to appreciate the turf, however. Once I bid on a project that had 100M
>rows each containing a graphic file. Not to say that size is everything,
>but IMO VLDB comprises at least a TB, and often many hundreds of TBs.
>
>I just got a contract with a company using MySQL whose test database's
>most important table comprises 100M rows. They expect their clients to
>have 10* as many rows. My job is to optimize the queries. Fortunately, I
>can assume any hardware I deem necessary to do it. They are after
>sub-second retrieves against 1B rows, with maybe 1000 users. Life's a
>beach and then you drown. I don't know if I can deliver what they want,
>but what I can deliver is benchmarks against the various DBs that I'm
>comfortable with -- SQL 2000, Oracle, MySQL and DB/2. I figure that if
>none of them can do it, I'm off the hook :)
>
>The difficult part of this new assignment is that there's no way I can
>duplicate the hardware resources required to emulate the required
>system, so I have to assume that the benchmarks on my local system will
>hold up in a load-leveling 100-server environment -- at least until I
>have something worthy of installing and then test it in that
>environment.
>
>I sympathize and empathize with your situation, JC. It's amazing how
>many of our tried-and-true solutions go right out the window when you
>escalate the number of rows to 100M -- and then factor in multiple
>joins. Stuff that looks spectacular with only 1M rows suddenly sucks
>big-time when applied to 100M rows.
>
>Arthur
>
>-----Original Message-----
>From: accessd-bounces at databaseadvisors.com
>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby
>Sent: Tuesday, August 31, 2004 7:13 AM
>To: 'Access Developers discussion and problem solving'
>Subject: RE: [AccessD] Every 100th record
>
>
>Paul,
>
>In fact I am trying to make this run on my home system which is part of
>the problem. This week I am playing "stay-at-home dad" as my wife
>starts the chhool year this week and has all those 1st week teacher
>meetings / training.
>
>I have never come even close to a db this size and it has definitely
>been a learning experience. Here's hoping I survive.
>
>John W. Colby
>www.ColbyConsulting.com
>
>-----Original Message-----
>From: accessd-bounces at databaseadvisors.com
>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers
>Sent: Tuesday, August 31, 2004 3:49 AM
>To: 'Access Developers discussion and problem solving'
>Subject: RE: [AccessD] Every 100th record
>
>
>65 million! What an amazing world you work it. Is there ever time in the
>week to pop home for an hour?
>Cheers paul
>
>-----Original Message-----
>From: John W. Colby [mailto:jwcolby at colbyconsulting.com]
>Sent: 27 August 2004 16:39
>To: 'Access Developers discussion and problem solving'
>Subject: RE: [AccessD] Every 100th record
>
>
>Gustav,
>
>I am working on a SQL Server database of about 65 million records. We
>need to pull a subset of those for doing counts of data in specific
>fields. Trying to do that analysis on the entire 65 million records just
>won't work at least in anything close to realtime. Thus we literally
>want to pull every Nth record. If we pulled every 100th record into a
>table that would give a sampling of 650K records to run this analysis
>on. That still won't be lightning fast but at least doable.
>
>John W. Colby
>www.ColbyConsulting.com
>
>-----Original Message-----
>From: accessd-bounces at databaseadvisors.com
>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
>Sent: Friday, August 27, 2004 11:22 AM
>To: Access Developers discussion and problem solving
>Subject: Re: [AccessD] Every 100th record
>
>
>Hi John
>
>
> > Does anyone have a strategy for pulling every Nth record? My client
> > wants to pull every 100th record into a dataset for analysis, to speed
>
> > things up I am guessing.
>
>To speed up what? Analysis on a sample only and not on the full set?
>
>If so, you could select by "Random Between 1 To 100" = 1.
>
>/gustav
>
>--
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>
>
>--
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
>
>
>--
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>
>
>--
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>--
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
From gustav at cactus.dk Wed Sep 1 08:52:11 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 15:52:11 +0200
Subject: [AccessD] Time zones (was: internationalization)
In-Reply-To: <11525103216.20040714155748@cactus.dk>
References: <2F8793082E00D4119A1700B0D0216BF8017A1F98@main2.marlow.com>
<32007103843568110723d0567@global.net.pg>
<11525103216.20040714155748@cactus.dk>
Message-ID: <19626796821.20040901155211@cactus.dk>
Hi all
I just saw that Helen has published the part two of this horror code
and checked if anything had been changed - but no.
Just in case you should be involved in time zones, I will just say:
look everywhere else.
But how do you US people deal with time zones? In Europe we seldom do
(the countries are too small) but you have to shift between Pacific
and Mountain etc. all day, except for local compannies, of course.
/gustav
> Hi all
> This topic popped up in all its glory in the recent issue of "Woody's
> Access Watch" where Helen Feddema is goofing around trying to parse
> date/time strings to figure out time zones. Of course, this dirty
> deroute is paved with traps so it doesn't work outside the US where
> other regional settings are used.
> Just in case anyone should have a need for dealing with time zones,
> here are a couple of functions we use. You'll quickly notice that
> essentially it is nothing more than a little clean up and one single
> line of code:
> datRemote = DateAdd("n", lngBias, datLocal)
> If you have nothing to do Friday you may wish to browse Helen's demo:
> ftp://ftp.helenfeddema.com/pub/accarch121.zip
>
> Public Function TimeZoneBiasDiff( _
> ByVal lngLocalTimeBias As Long, _
> ByVal lngRemoteTimeBias As Long) _
> As Long
> ' Calculates the difference in minutes between two time zones,
> ' typically the local time zone and a remote time zone.
> ' Both time zones must be expressed by their bias relative to
> ' UTC (Coordinated Universal Time) which is measured in minutes.
> '
> ' 2000-05-30. Cactus Data ApS, CPH.
> ' Minimum amount of minutes for a time zone bias.
> Const clngTimeZoneBiasMin As Long = 15
> Dim lngTimeZoneBiasDiff As Long
> ' Round off time zone bias by minimum time zone difference.
> lngLocalTimeBias = lngLocalTimeBias \ clngTimeZoneBiasMin
> lngLocalTimeBias = lngLocalTimeBias * clngTimeZoneBiasMin
> lngRemoteTimeBias = lngRemoteTimeBias \ clngTimeZoneBiasMin
> lngRemoteTimeBias = lngRemoteTimeBias * clngTimeZoneBiasMin
> ' Calculate difference in time zone bias.
> lngTimeZoneBiasDiff = lngRemoteTimeBias - lngLocalTimeBias
> TimeZoneBiasDiff = lngTimeZoneBiasDiff
> End Function
> Public Function DateAddTimeZoneDiff( _
> ByVal datLocal As Date, _
> ByVal lngLocalBias, _
> ByVal lngRemoteBias) _
> As Date
> ' Calculates the date/time of datLocal in a remote time zone.
> ' The difference in minutes will be the difference between the
> ' local time zone bias and the remote time zone bias where the
> ' bias are relative to UTC.
> '
> ' Examples:
> '
> ' datRemote = DateAddTimeZoneDiff(Now(), 60, -600)
> ' will return datRemote as eleven hours behind local time.
> '
> ' datRemote = DateAddTimeZoneDiff(Now(), -600, 60)
> ' will return datRemote as eleven hours ahead of local time.
> '
> ' 2000-05-30. Cactus Data ApS, CPH.
> Dim datRemote As Date
> Dim lngBias As Long
> ' Get difference (in minutes) in time zone bias.
> lngBias = TimeZoneBiasDiff(lngLocalBias, lngRemoteBias)
> ' Calculate remote date/time.
> datRemote = DateAdd("n", lngBias, datLocal)
> DateAddTimeZoneDiff = datRemote
> End Function
>
> Also, note "GMT" has been considered obsolete for years and has for
> every serious use been replaced with UTC.
> /gustav
>> On 27 Nov 2002 at 15:45, Gustav Brock wrote:
>>> Hi Drew
>>>
>>> > Thanks. Next version I'll incorporate that.
>>>
>>> OK.
>>>
>>> > Time zones are pretty easy. In fact, all of this date stuff is too. The
>>> > only real monster is Arizona, which decreed to ignore daylight savings time.
>>>
>>> So how DO you deal with the time zones?
>>>
>>> I have seen no options in Access for this contrary to Oracle which can
>>> record date/time including the time zone.
>>>
>>> My thought was to use a byte field with a shifted value similar to how
>>> MySQL can store a year value in a byte field ...
>>>
>> You could get the Bias member of the Time_Zone_Information structure
>> retrieved with the GetTimeZoneInformation API function and either
>> apply it to the time in question or store it in another field as a
>> long (or integer if space is critical)
>>
>> Stuart
From kaupca at chevrontexaco.com Wed Sep 1 09:10:40 2004
From: kaupca at chevrontexaco.com (Kaup, Chester A)
Date: Wed, 1 Sep 2004 09:10:40 -0500
Subject: [AccessD] Subform problem with detail section
Message-ID: <1375769556091B4DAABC159F944CA1BB0B046A@bocnte2k4.boc.chevrontexaco.net>
I have a subform on a main form. If I set the recordset type property to
snapshot I can see the records from the record source table but cannot
add records. If I set the recordset type to dynaset the detail section
of the subreport disappears. I believe dynaset will allow records to be
added but an invisible detail section is of no help. What do I have set
wrong? Thanks
Chester Kaup
Information Management Technician
IT-MidContinent/MidContinent Business Unit
CTN 8-687-7415
Outside 432-687-7414
No trees were killed in the sending of this message. However a large
number of electrons were terribly inconvenienced.
From cyx5 at cdc.gov Wed Sep 1 09:18:23 2004
From: cyx5 at cdc.gov (Nicholson, Karen)
Date: Wed, 1 Sep 2004 10:18:23 -0400
Subject: [AccessD] Order By in Subform
Message-ID:
Syntax, syntax. The prior programmer used a pound sign in the subform
name. I am trying to place on 'on click' event procedure to sort the
subform by the task number field. I am getting a syntax error with this
code:
Me.[frmSortTask#].Form.OrderBy = "TaskNumber"
Me.[frmSortTask#].Form.OrderByOn = True
Any ideas?
Karen Nicholson
National Laboratory
Xerox Global Services
From bchacc at san.rr.com Wed Sep 1 09:55:46 2004
From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software)
Date: Wed, 1 Sep 2004 07:55:46 -0700
Subject: [AccessD] Order By in Subform
References:
Message-ID: <010401c49033$c34e7fd0$6601a8c0@HAL9002>
Karen:
I think doing a global replace on the name would be the quickest way. Do
you have Find and Replace, Speed Ferret or some other third party add-in? I
use Find and Replace and that would change all the references even in the
object names.
HTH
Rocky Smolin
Beach Access Software
http://www.e-z-mrp.com
----- Original Message -----
From: "Nicholson, Karen"
To:
Sent: Wednesday, September 01, 2004 7:18 AM
Subject: [AccessD] Order By in Subform
Syntax, syntax. The prior programmer used a pound sign in the subform
name. I am trying to place on 'on click' event procedure to sort the
subform by the task number field. I am getting a syntax error with this
code:
Me.[frmSortTask#].Form.OrderBy = "TaskNumber"
Me.[frmSortTask#].Form.OrderByOn = True
Any ideas?
Karen Nicholson
National Laboratory
Xerox Global Services
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From cyx5 at cdc.gov Wed Sep 1 10:03:48 2004
From: cyx5 at cdc.gov (Nicholson, Karen)
Date: Wed, 1 Sep 2004 11:03:48 -0400
Subject: [AccessD] Order By in Subform
Message-ID:
Got it. Overthinking, I suppose. This works:
Me.OrderBy = "tasknumber"
Me.OrderByOn = True
Any objections?
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson,
Karen
Sent: Wednesday, September 01, 2004 10:18 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Order By in Subform
Syntax, syntax. The prior programmer used a pound sign in the subform
name. I am trying to place on 'on click' event procedure to sort the
subform by the task number field. I am getting a syntax error with this
code:
Me.[frmSortTask#].Form.OrderBy = "TaskNumber"
Me.[frmSortTask#].Form.OrderByOn = True
Any ideas?
Karen Nicholson
National Laboratory
Xerox Global Services
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Wed Sep 1 10:35:54 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 08:35:54 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <4314961823.20040901123456@cactus.dk>
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
Message-ID:
I will try this option Gustav, thanks :D.
btw, Rocky... What I meant by autoload was that in the Form_Load event
I have code that loads data to the form. because it was in the
form_load event, the prompt was occuring before the user had a chance
to see the form.
On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock wrote:
> Hi Andy and Francisco
>
> I would suggest OnCurrent.
> To prevent multiple prompts, set a static flag:
>
> Static booIsPrompted As Boolean
>
> If booIsPrompted = False Then
> ' Ask if you user wish to load data.
>
> booIsPrompted = True
> End If
--
-Francisco
From cfoust at infostatsystems.com Wed Sep 1 10:36:42 2004
From: cfoust at infostatsystems.com (Charlotte Foust)
Date: Wed, 1 Sep 2004 08:36:42 -0700
Subject: [AccessD] Time zones (was: internationalization)
Message-ID:
We don't generally deal with it except in our heads. I've never had to
address it in an application, although probably I would use an offset to
UTC as well.
Charlotte Foust
-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk]
Sent: Wednesday, September 01, 2004 6:52 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Time zones (was: internationalization)
Hi all
I just saw that Helen has published the part two of this horror code and
checked if anything had been changed - but no.
Just in case you should be involved in time zones, I will just say: look
everywhere else.
But how do you US people deal with time zones? In Europe we seldom do
(the countries are too small) but you have to shift between Pacific and
Mountain etc. all day, except for local compannies, of course.
/gustav
> Hi all
> This topic popped up in all its glory in the recent issue of "Woody's
> Access Watch" where Helen Feddema is goofing around trying to parse
> date/time strings to figure out time zones. Of course, this dirty
> deroute is paved with traps so it doesn't work outside the US where
> other regional settings are used.
> Just in case anyone should have a need for dealing with time zones,
> here are a couple of functions we use. You'll quickly notice that
> essentially it is nothing more than a little clean up and one single
> line of code:
> datRemote = DateAdd("n", lngBias, datLocal)
> If you have nothing to do Friday you may wish to browse Helen's demo:
> ftp://ftp.helenfeddema.com/pub/accarch121.zip
>
> Public Function TimeZoneBiasDiff( _
> ByVal lngLocalTimeBias As Long, _
> ByVal lngRemoteTimeBias As Long) _
> As Long
> ' Calculates the difference in minutes between two time zones, '
> typically the local time zone and a remote time zone. ' Both time
> zones must be expressed by their bias relative to ' UTC (Coordinated
> Universal Time) which is measured in minutes. '
> ' 2000-05-30. Cactus Data ApS, CPH.
> ' Minimum amount of minutes for a time zone bias.
> Const clngTimeZoneBiasMin As Long = 15
> Dim lngTimeZoneBiasDiff As Long
> ' Round off time zone bias by minimum time zone difference.
> lngLocalTimeBias = lngLocalTimeBias \ clngTimeZoneBiasMin
> lngLocalTimeBias = lngLocalTimeBias * clngTimeZoneBiasMin
> lngRemoteTimeBias = lngRemoteTimeBias \ clngTimeZoneBiasMin
> lngRemoteTimeBias = lngRemoteTimeBias * clngTimeZoneBiasMin
> ' Calculate difference in time zone bias.
> lngTimeZoneBiasDiff = lngRemoteTimeBias - lngLocalTimeBias
> TimeZoneBiasDiff = lngTimeZoneBiasDiff
> End Function
> Public Function DateAddTimeZoneDiff( _
> ByVal datLocal As Date, _
> ByVal lngLocalBias, _
> ByVal lngRemoteBias) _
> As Date
> ' Calculates the date/time of datLocal in a remote time zone. ' The
> difference in minutes will be the difference between the ' local time
> zone bias and the remote time zone bias where the ' bias are relative
> to UTC. '
> ' Examples:
> '
> ' datRemote = DateAddTimeZoneDiff(Now(), 60, -600)
> ' will return datRemote as eleven hours behind local time.
> '
> ' datRemote = DateAddTimeZoneDiff(Now(), -600, 60)
> ' will return datRemote as eleven hours ahead of local time.
> '
> ' 2000-05-30. Cactus Data ApS, CPH.
> Dim datRemote As Date
> Dim lngBias As Long
> ' Get difference (in minutes) in time zone bias.
> lngBias = TimeZoneBiasDiff(lngLocalBias, lngRemoteBias)
> ' Calculate remote date/time.
> datRemote = DateAdd("n", lngBias, datLocal)
> DateAddTimeZoneDiff = datRemote
> End Function
>
> Also, note "GMT" has been considered obsolete for years and has for
> every serious use been replaced with UTC.
> /gustav
>> On 27 Nov 2002 at 15:45, Gustav Brock wrote:
>>> Hi Drew
>>>
>>> > Thanks. Next version I'll incorporate that.
>>>
>>> OK.
>>>
>>> > Time zones are pretty easy. In fact, all of this date stuff is
>>> > too. The only real monster is Arizona, which decreed to ignore
>>> > daylight savings time.
>>>
>>> So how DO you deal with the time zones?
>>>
>>> I have seen no options in Access for this contrary to Oracle which
>>> can record date/time including the time zone.
>>>
>>> My thought was to use a byte field with a shifted value similar to
>>> how MySQL can store a year value in a byte field ...
>>>
>> You could get the Bias member of the Time_Zone_Information structure
>> retrieved with the GetTimeZoneInformation API function and either
>> apply it to the time in question or store it in another field as a
>> long (or integer if space is critical)
>>
>> Stuart
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Wed Sep 1 10:41:20 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 08:41:20 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
Message-ID:
Just tried it and the OnCurrent event also fires before the form is
loaded :(, gonna try the OnTimmer...
On Wed, 1 Sep 2004 08:35:54 -0700, Francisco Tapia wrote:
> I will try this option Gustav, thanks :D.
>
> btw, Rocky... What I meant by autoload was that in the Form_Load event
> I have code that loads data to the form. because it was in the
> form_load event, the prompt was occuring before the user had a chance
> to see the form.
>
> On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock wrote:
> > Hi Andy and Francisco
> >
> > I would suggest OnCurrent.
> > To prevent multiple prompts, set a static flag:
> >
> > Static booIsPrompted As Boolean
> >
> > If booIsPrompted = False Then
> > ' Ask if you user wish to load data.
> >
> > booIsPrompted = True
> > End If
>
> --
> -Francisco
>
--
-Francisco
From gustav at cactus.dk Wed Sep 1 10:54:01 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 17:54:01 +0200
Subject: [AccessD] Time zones (was: internationalization)
In-Reply-To:
References:
Message-ID: <10834106562.20040901175401@cactus.dk>
Hi Charlotte
Really? But "nation wide" corporations exist - and the dates of
Honolulu and Miami can be a date apart for many hours?
/gustav
> We don't generally deal with it except in our heads. I've never had to
> address it in an application, although probably I would use an offset to
> UTC as well.
From gustav at cactus.dk Wed Sep 1 10:56:04 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 17:56:04 +0200
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
Message-ID: <9234229188.20040901175604@cactus.dk>
Hi Francisco
Yes, that's right ...
But replace the Boolean with a counter: one, two ...
/gustav
> Just tried it and the OnCurrent event also fires before the form is
> loaded :(, gonna try the OnTimmer...
> On Wed, 1 Sep 2004 08:35:54 -0700, Francisco Tapia wrote:
>> I will try this option Gustav, thanks :D.
>>
>> btw, Rocky... What I meant by autoload was that in the Form_Load event
>> I have code that loads data to the form. because it was in the
>> form_load event, the prompt was occuring before the user had a chance
>> to see the form.
>>
>> On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock wrote:
>> > Hi Andy and Francisco
>> >
>> > I would suggest OnCurrent.
>> > To prevent multiple prompts, set a static flag:
>> >
>> > Static booIsPrompted As Boolean
>> >
>> > If booIsPrompted = False Then
>> > ' Ask if you user wish to load data.
>> >
>> > booIsPrompted = True
>> > End If
From cfoust at infostatsystems.com Wed Sep 1 11:11:44 2004
From: cfoust at infostatsystems.com (Charlotte Foust)
Date: Wed, 1 Sep 2004 09:11:44 -0700
Subject: [AccessD] Time zones (was: internationalization)
Message-ID:
World wide corporations exist too. We generally look at the clock to
see whether we can reach one of our clients in the North Sea or Yemen or
Canada or South America. What are you envisioning? In our business,
the relative times aren't relevant, only the local time is important, so
we don't have to worry about it.
Charlotte Foust
-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk]
Sent: Wednesday, September 01, 2004 8:54 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Time zones (was: internationalization)
Hi Charlotte
Really? But "nation wide" corporations exist - and the dates of Honolulu
and Miami can be a date apart for many hours?
/gustav
> We don't generally deal with it except in our heads. I've never had
> to address it in an application, although probably I would use an
> offset to UTC as well.
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Wed Sep 1 11:28:51 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 09:28:51 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
Message-ID:
On Timmer w/ a static variable is what I ended up using (plus after it
fires I shoot the timer interval to 2hrs (more than enough time) so
it hopefully won't fire again until after their session is done.
On Wed, 1 Sep 2004 08:41:20 -0700, Francisco Tapia wrote:
> Just tried it and the OnCurrent event also fires before the form is
> loaded :(, gonna try the OnTimmer...
>
>
>
> On Wed, 1 Sep 2004 08:35:54 -0700, Francisco Tapia wrote:
> > I will try this option Gustav, thanks :D.
> >
> > btw, Rocky... What I meant by autoload was that in the Form_Load event
> > I have code that loads data to the form. because it was in the
> > form_load event, the prompt was occuring before the user had a chance
> > to see the form.
> >
> > On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock wrote:
> > > Hi Andy and Francisco
> > >
> > > I would suggest OnCurrent.
> > > To prevent multiple prompts, set a static flag:
> > >
> > > Static booIsPrompted As Boolean
> > >
> > > If booIsPrompted = False Then
> > > ' Ask if you user wish to load data.
> > >
> > > booIsPrompted = True
> > > End If
> >
> > --
> > -Francisco
> >
>
>
> --
> -Francisco
>
--
-Francisco
From fhtapia at gmail.com Wed Sep 1 11:32:23 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 09:32:23 -0700
Subject: [AccessD] Time zones (was: internationalization)
In-Reply-To:
References:
Message-ID:
Here is an issue that I never quite took into consideration: In a
(now in production) database all times are stored as UTC, however to
display I AM using an Offset of the local time, however if i were to
query an "OLDER" timeframe that was outside the scope of the daylights
savigns, then my math would be incorrect right?
How would you manage that? would it be wise to wrap the date inside a
function that could distinguish the daylights savings w/ non for the
local area? This way the dates not shift between daylights and
non-daylights savings schedules.
On Wed, 1 Sep 2004 09:11:44 -0700, Charlotte Foust
wrote:
> World wide corporations exist too. We generally look at the clock to
> see whether we can reach one of our clients in the North Sea or Yemen or
> Canada or South America. What are you envisioning? In our business,
> the relative times aren't relevant, only the local time is important, so
> we don't have to worry about it.
>
> Charlotte Foust
>
>
>
>
> -----Original Message-----
> From: Gustav Brock [mailto:gustav at cactus.dk]
> Sent: Wednesday, September 01, 2004 8:54 AM
> To: Access Developers discussion and problem solving
> Subject: Re: [AccessD] Time zones (was: internationalization)
>
> Hi Charlotte
>
> Really? But "nation wide" corporations exist - and the dates of Honolulu
> and Miami can be a date apart for many hours?
>
> /gustav
>
> > We don't generally deal with it except in our heads. I've never had
> > to address it in an application, although probably I would use an
> > offset to UTC as well.
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
-Francisco
From gustav at cactus.dk Wed Sep 1 11:48:39 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 18:48:39 +0200
Subject: [AccessD] Time zones (was: internationalization)
In-Reply-To:
References:
Message-ID: <2337384085.20040901184839@cactus.dk>
Hi Francisco
Well, to Charlotte this seems to be no problem, but it was
considerations as those you describe I was thinking of.
So far my thoughts would be to store date/time as UTC time, then do
the conversion (shift) later to whatever time zone you may need.
But what is your question really? Daylight savings is just another
twist to time zone issues. And remember, some time zones are offset by
30 or even 15 minutes only.
Did you see my code previously posted (2004-07-14)?
/gustav
> Here is an issue that I never quite took into consideration: In a
> (now in production) database all times are stored as UTC, however to
> display I AM using an Offset of the local time, however if i were to
> query an "OLDER" timeframe that was outside the scope of the daylights
> savigns, then my math would be incorrect right?
> How would you manage that? would it be wise to wrap the date inside a
> function that could distinguish the daylights savings w/ non for the
> local area? This way the dates not shift between daylights and
> non-daylights savings schedules.
> On Wed, 1 Sep 2004 09:11:44 -0700, Charlotte Foust
> wrote:
>> World wide corporations exist too. We generally look at the clock to
>> see whether we can reach one of our clients in the North Sea or Yemen or
>> Canada or South America. What are you envisioning? In our business,
>> the relative times aren't relevant, only the local time is important, so
>> we don't have to worry about it.
>>
>> Charlotte Foust
>>
>>
>> -----Original Message-----
>> From: Gustav Brock [mailto:gustav at cactus.dk]
>> Sent: Wednesday, September 01, 2004 8:54 AM
>> To: Access Developers discussion and problem solving
>> Subject: Re: [AccessD] Time zones (was: internationalization)
>>
>> Hi Charlotte
>>
>> Really? But "nation wide" corporations exist - and the dates of Honolulu
>> and Miami can be a date apart for many hours?
>>
>> /gustav
>>
>> > We don't generally deal with it except in our heads. I've never had
>> > to address it in an application, although probably I would use an
>> > offset to UTC as well.
From fhtapia at gmail.com Wed Sep 1 11:56:49 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 09:56:49 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <9234229188.20040901175604@cactus.dk>
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
<9234229188.20040901175604@cactus.dk>
Message-ID:
Why a counter?
On Wed, 1 Sep 2004 17:56:04 +0200, Gustav Brock wrote:
> Hi Francisco
>
> Yes, that's right ...
> But replace the Boolean with a counter: one, two ...
>
--
-Francisco
From fhtapia at gmail.com Wed Sep 1 12:08:26 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 10:08:26 -0700
Subject: [AccessD] Subform problem with detail section
In-Reply-To: <1375769556091B4DAABC159F944CA1BB0B046A@bocnte2k4.boc.chevrontexaco.net>
References: <1375769556091B4DAABC159F944CA1BB0B046A@bocnte2k4.boc.chevrontexaco.net>
Message-ID:
Sounds like you enabled the subform for dataentry, which Will NOT show
your records, only new records can be added when in this mode. This
mode is useful for adding new records but not if you're trying to
edit/add for that I suggest you visit your form properties under the
data tab, disable data entry.
On Wed, 1 Sep 2004 09:10:40 -0500, Kaup, Chester A
wrote:
> I have a subform on a main form. If I set the recordset type property to
> snapshot I can see the records from the record source table but cannot
> add records. If I set the recordset type to dynaset the detail section
> of the subreport disappears. I believe dynaset will allow records to be
> added but an invisible detail section is of no help. What do I have set
> wrong? Thanks
--
-Francisco
From gustav at cactus.dk Wed Sep 1 12:11:43 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 19:11:43 +0200
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
<9234229188.20040901175604@cactus.dk>
Message-ID: <15538768786.20040901191143@cactus.dk>
Hi Francisco
> Why a counter?
Form loads => 1
Form hits current first time => 2
So:
If lngCounter = 2 then
End If
lngCounter = lngCounter + 1
/gustav
>> But replace the Boolean with a counter: one, two ...
From CMackin at Quiznos.com Wed Sep 1 12:25:15 2004
From: CMackin at Quiznos.com (Mackin, Christopher)
Date: Wed, 1 Sep 2004 11:25:15 -0600
Subject: [AccessD] Prompt after Form loads
Message-ID:
Why not set the timerinterval to zero so it's guaranteed to not fire again?
-Chris Mackin
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco
Tapia
Sent: Wednesday, September 01, 2004 10:29 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Prompt after Form loads
On Timmer w/ a static variable is what I ended up using (plus after it
fires I shoot the timer interval to 2hrs (more than enough time) so
it hopefully won't fire again until after their session is done.
On Wed, 1 Sep 2004 08:41:20 -0700, Francisco Tapia wrote:
> Just tried it and the OnCurrent event also fires before the form is
> loaded :(, gonna try the OnTimmer...
>
>
>
> On Wed, 1 Sep 2004 08:35:54 -0700, Francisco Tapia wrote:
> > I will try this option Gustav, thanks :D.
> >
> > btw, Rocky... What I meant by autoload was that in the Form_Load event
> > I have code that loads data to the form. because it was in the
> > form_load event, the prompt was occuring before the user had a chance
> > to see the form.
> >
> > On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock wrote:
> > > Hi Andy and Francisco
> > >
> > > I would suggest OnCurrent.
> > > To prevent multiple prompts, set a static flag:
> > >
> > > Static booIsPrompted As Boolean
> > >
> > > If booIsPrompted = False Then
> > > ' Ask if you user wish to load data.
> > >
> > > booIsPrompted = True
> > > End If
> >
> > --
> > -Francisco
> >
>
>
> --
> -Francisco
>
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From kaupca at chevrontexaco.com Wed Sep 1 12:33:30 2004
From: kaupca at chevrontexaco.com (Kaup, Chester A)
Date: Wed, 1 Sep 2004 12:33:30 -0500
Subject: [AccessD] Subform problem with detail section
Message-ID: <1375769556091B4DAABC159F944CA1BB07A193@bocnte2k4.boc.chevrontexaco.net>
Guess I did not make it clear. I only want to be able to add new records
not see the existing records. The problem is that none of the list boxes
or text boxes in the detail section show up to enter data into.
Chester Kaup
Information Management Technician
IT-MidContinent/MidContinent Business Unit
CTN 8-687-7415
Outside 432-687-7414
No trees were killed in the sending of this message. However a large
number of electrons were terribly inconvenienced.
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco
Tapia
Sent: Wednesday, September 01, 2004 12:08 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Subform problem with detail section
Sounds like you enabled the subform for dataentry, which Will NOT show
your records, only new records can be added when in this mode. This
mode is useful for adding new records but not if you're trying to
edit/add for that I suggest you visit your form properties under the
data tab, disable data entry.
On Wed, 1 Sep 2004 09:10:40 -0500, Kaup, Chester A
wrote:
> I have a subform on a main form. If I set the recordset type property
> to snapshot I can see the records from the record source table but
> cannot add records. If I set the recordset type to dynaset the detail
> section of the subreport disappears. I believe dynaset will allow
> records to be added but an invisible detail section is of no help.
> What do I have set wrong? Thanks
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From gustav at cactus.dk Wed Sep 1 12:34:03 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 19:34:03 +0200
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <15538768786.20040901191143@cactus.dk>
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
<9234229188.20040901175604@cactus.dk>
<15538768786.20040901191143@cactus.dk>
Message-ID: <1640108342.20040901193403@cactus.dk>
Hi Francisco
Sorry, should of course be:
If lngCounter = 1 then
End If
lngCounter = lngCounter + 1
or
lngCounter = lngCounter + 1
If lngCounter = 2 then
End If
/gustav
>> Why a counter?
> Form loads => 1
> Form hits current first time => 2
> So:
> If lngCounter = 2 then
>
> End If
> lngCounter = lngCounter + 1
> /gustav
>>> But replace the Boolean with a counter: one, two ...
From fhtapia at gmail.com Wed Sep 1 12:39:01 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 10:39:01 -0700
Subject: [AccessD] Time zones (was: internationalization)
In-Reply-To: <2337384085.20040901184839@cactus.dk>
References:
<2337384085.20040901184839@cactus.dk>
Message-ID:
No, but after a quick archive search I found it, thanks :D
thanks Gustav, so to be clear, if I have a record from daylights
savings time, and I query it in NON-Daylights saving time, this code
will keep the record at it's accurate time, meaning
if It was processed in the summer (GMT-8) at 4pm, and I query the
record in the Winter will the record show up processed at 4pm or 3pm?,
the UTC time stored in the db doesn't change, but when they query it,
will.
Thanks,
On Wed, 1 Sep 2004 18:48:39 +0200, Gustav Brock wrote:
> Hi Francisco
>
> Well, to Charlotte this seems to be no problem, but it was
> considerations as those you describe I was thinking of.
>
> So far my thoughts would be to store date/time as UTC time, then do
> the conversion (shift) later to whatever time zone you may need.
> But what is your question really? Daylight savings is just another
> twist to time zone issues. And remember, some time zones are offset by
> 30 or even 15 minutes only.
>
> Did you see my code previously posted (2004-07-14)?
>
--
-Francisco
From fhtapia at gmail.com Wed Sep 1 12:41:17 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 10:41:17 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References:
Message-ID:
AH! :D, thanks
On Wed, 1 Sep 2004 11:25:15 -0600, Mackin, Christopher
wrote:
> Why not set the timerinterval to zero so it's guaranteed to not fire again?
>
> -Chris Mackin
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco
> Tapia
> Sent: Wednesday, September 01, 2004 10:29 AM
> To: Access Developers discussion and problem solving
> Subject: Re: [AccessD] Prompt after Form loads
>
> On Timmer w/ a static variable is what I ended up using (plus after it
> fires I shoot the timer interval to 2hrs (more than enough time) so
> it hopefully won't fire again until after their session is done.
>
> On Wed, 1 Sep 2004 08:41:20 -0700, Francisco Tapia wrote:
> > Just tried it and the OnCurrent event also fires before the form is
> > loaded :(, gonna try the OnTimmer...
--
-Francisco
From fhtapia at gmail.com Wed Sep 1 12:45:49 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 10:45:49 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <15538768786.20040901191143@cactus.dk>
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
<9234229188.20040901175604@cactus.dk>
<15538768786.20040901191143@cactus.dk>
Message-ID:
just the same I did it as a boolean static
so
Static blnINIT As Boolean
IF blnINIT = FALSE then
blnINIT = TRUE
Endif
On Wed, 1 Sep 2004 19:11:43 +0200, Gustav Brock wrote:
> Hi Francisco
>
> > Why a counter?
>
> Form loads => 1
> Form hits current first time => 2
>
> So:
>
> If lngCounter = 2 then
>
> End If
> lngCounter = lngCounter + 1
>
> /gustav
>
> >> But replace the Boolean with a counter: one, two ...
>
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
-Francisco
From fhtapia at gmail.com Wed Sep 1 12:48:17 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 10:48:17 -0700
Subject: [AccessD] Subform problem with detail section
In-Reply-To: <1375769556091B4DAABC159F944CA1BB07A193@bocnte2k4.boc.chevrontexaco.net>
References: <1375769556091B4DAABC159F944CA1BB07A193@bocnte2k4.boc.chevrontexaco.net>
Message-ID:
So then, is the Data Entry option enabled?, is the table you're adding
records to you have a Primary Key ID?
On Wed, 1 Sep 2004 12:33:30 -0500, Kaup, Chester A
wrote:
> Guess I did not make it clear. I only want to be able to add new records
> not see the existing records. The problem is that none of the list boxes
> or text boxes in the detail section show up to enter data into.
--
-Francisco
From adtp at touchtelindia.net Wed Sep 1 12:57:30 2004
From: adtp at touchtelindia.net (A.D.Tejpal)
Date: Wed, 1 Sep 2004 23:27:30 +0530
Subject: [AccessD] Prompt after Form loads
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25><4314961823.20040
901123456@cactus.dk>
Message-ID: <00c001c4904d$5dc1f3d0$571865cb@winxp>
Francisco,
As far as practicable, it is considered desirable to avoid activation of form's timer. Following course of action is suggested.
Use a plain temporary form (it need not have any controls at all) to open the main form (named F_Main). Put the code given below in Open event of this form.
Now, whenever you open the the temporary form, the main form will be displayed normally along with the prompt - as desired. (In the meanwhile the temporary form will close by itself - the user will not become aware of it).
Regards,
A.D.Tejpal
--------------
================================
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "F_Main"
MsgBox "Pl Check The Values"
Cancel = 1
End Sub
================================
----- Original Message -----
From: Francisco Tapia
To: Access Developers discussion and problem solving
Sent: Wednesday, September 01, 2004 21:58
Subject: Re: [AccessD] Prompt after Form loads
On Timmer w/ a static variable is what I ended up using (plus after it
fires I shoot the timer interval to 2hrs (more than enough time) so
it hopefully won't fire again until after their session is done.
On Wed, 1 Sep 2004 08:41:20 -0700, Francisco Tapia wrote:
> Just tried it and the OnCurrent event also fires before the form is
> loaded :(, gonna try the OnTimmer...
>
>
>
> On Wed, 1 Sep 2004 08:35:54 -0700, Francisco Tapia wrote:
> > I will try this option Gustav, thanks :D.
> >
> > btw, Rocky... What I meant by autoload was that in the Form_Load event
> > I have code that loads data to the form. because it was in the
> > form_load event, the prompt was occuring before the user had a chance
> > to see the form.
> >
> > On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock wrote:
> > > Hi Andy and Francisco
> > >
> > > I would suggest OnCurrent.
> > > To prevent multiple prompts, set a static flag:
> > >
> > > Static booIsPrompted As Boolean
> > >
> > > If booIsPrompted = False Then
> > > ' Ask if you user wish to load data.
> > >
> > > booIsPrompted = True
> > > End If
> >
> > --
> > -Francisco
> >
>
>
> --
> -Francisco
>
--
-Francisco
From gustav at cactus.dk Wed Sep 1 12:59:41 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 19:59:41 +0200
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
<9234229188.20040901175604@cactus.dk>
<15538768786.20040901191143@cactus.dk>
Message-ID: <141646033.20040901195941@cactus.dk>
Hi Francisco
It's not quite the same.
The counter counts to one, then runs your code.
No Timer fiddling.
/gustav
> just the same I did it as a boolean static
> so
> Static blnINIT As Boolean
> IF blnINIT = FALSE then
>
> blnINIT = TRUE
> Endif
> On Wed, 1 Sep 2004 19:11:43 +0200, Gustav Brock wrote:
>> Hi Francisco
>>
>> > Why a counter?
>>
>> Form loads => 1
>> Form hits current first time => 2
>>
>> So:
>>
>> If lngCounter = 2 then
>>
>> End If
>> lngCounter = lngCounter + 1
>>
>> /gustav
>>
>> >> But replace the Boolean with a counter: one, two ...
From Jdemarco at hudsonhealthplan.org Wed Sep 1 13:11:50 2004
From: Jdemarco at hudsonhealthplan.org (Jim DeMarco)
Date: Wed, 1 Sep 2004 14:11:50 -0400
Subject: [AccessD] Prompt after Form loads
Message-ID: <08F823FD83787D4BA0B99CA580AD3C74089B22@TTNEXCHCL2.hshhp.com>
A.D.
I don't know that I've ever used form's timer but why is it considered desirable to avoid?
Thanks,
Jim DeMarco
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal
Sent: Wednesday, September 01, 2004 1:58 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Prompt after Form loads
Francisco,
As far as practicable, it is considered desirable to avoid activation of form's timer. Following course of action is suggested.
Use a plain temporary form (it need not have any controls at all) to open the main form (named F_Main). Put the code given below in Open event of this form.
Now, whenever you open the the temporary form, the main form will be displayed normally along with the prompt - as desired. (In the meanwhile the temporary form will close by itself - the user will not become aware of it).
Regards,
A.D.Tejpal
--------------
================================
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "F_Main"
MsgBox "Pl Check The Values"
Cancel = 1
End Sub
================================
----- Original Message -----
From: Francisco Tapia
To: Access Developers discussion and problem solving
Sent: Wednesday, September 01, 2004 21:58
Subject: Re: [AccessD] Prompt after Form loads
On Timmer w/ a static variable is what I ended up using (plus after it
fires I shoot the timer interval to 2hrs (more than enough time) so
it hopefully won't fire again until after their session is done.
On Wed, 1 Sep 2004 08:41:20 -0700, Francisco Tapia wrote:
> Just tried it and the OnCurrent event also fires before the form is
> loaded :(, gonna try the OnTimmer...
>
>
>
> On Wed, 1 Sep 2004 08:35:54 -0700, Francisco Tapia wrote:
> > I will try this option Gustav, thanks :D.
> >
> > btw, Rocky... What I meant by autoload was that in the Form_Load event
> > I have code that loads data to the form. because it was in the
> > form_load event, the prompt was occuring before the user had a chance
> > to see the form.
> >
> > On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock wrote:
> > > Hi Andy and Francisco
> > >
> > > I would suggest OnCurrent.
> > > To prevent multiple prompts, set a static flag:
> > >
> > > Static booIsPrompted As Boolean
> > >
> > > If booIsPrompted = False Then
> > > ' Ask if you user wish to load data.
> > >
> > > booIsPrompted = True
> > > End If
> >
> > --
> > -Francisco
> >
>
>
> --
> -Francisco
>
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You".
***********************************************************************************
From ppeters1 at cce.umn.edu Wed Sep 1 13:18:34 2004
From: ppeters1 at cce.umn.edu (Polly R Peterson)
Date: Wed, 1 Sep 2004 13:18:34 -0500
Subject: [AccessD] FW: Preparing Access Applications for Office 2003
Conversion
Message-ID:
If any of you have experience/advice on this issue we would appreciate
your input. Thanks in advance!
-Polly P.
________________________________________________________________________
___________________
PROBLEM:
Converting from Office XP to Office 2003 raises security warning
messages in Access .ADP applications that are delivered to users via a
standard image.
CONVERSION SECURITY ISSUE:
When testing our .adp applications in an Office 2003 test environment,
we find the following results:
* When macro security is set to high applications basically do not
function.
* When macro security is set to medium, a security warning appears
at startup:
"This file may not be safe if it contains code that was intended to harm
your computer. Do you want to open the file or cancel the operation?"
If you select 'open' then the application appears to function normally
* When macro security is set to low: Everything appears to
function normally.
OUR PROPOSED SOLUTION:
Microsoft recommends setting Macro Security to medium or high in Access
applications. After reading several articles, I'm leaning toward the
following solution:
Set Access macro security to medium and disable the security warning.
>From what I've read, it's possible for an administrator to do this via
Certificate Server on Windows 2000/2003 Server. The administrator could
create a digital signature that would be valid across the domain. This
digital signature certificate would essentially turn off the error
message you see if macro security settings are at medium.
QUESTIONS
1. How can we best adopt Microsoft's security recommendations and
avoid this error message?
2. Does our solution seem sensible? Has anyone actually done this
before? Are their details I'm overlooking? How have others dealt with
this conversion?
3. Where can we see what security level we are currently using in
Access 2002? The Tools, Macro, Security path isn't an option in 2002
and I can't find much on Macro security in that environment.
SPECS:
We're currently running Office XP, Access 2002, MS Jet 4.0 sp 8
(4.0.8618.0), Security Level: ?
We're Migrating to Office 2003, Access 2003, MS Jet 4.0 sp 8
(4.0.8618.0), Security Level Medium
From cfoust at infostatsystems.com Wed Sep 1 13:21:43 2004
From: cfoust at infostatsystems.com (Charlotte Foust)
Date: Wed, 1 Sep 2004 11:21:43 -0700
Subject: [AccessD] Prompt after Form loads
Message-ID:
I've used them under protest, but they tend to cause screen flickers and
various other odd behavior and they fight with other form events. The
form timer isn't implemented very well in Access, unlike the timer
controls you can use in VB.
Charlotte Foust
-----Original Message-----
From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org]
Sent: Wednesday, September 01, 2004 11:12 AM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] Prompt after Form loads
A.D.
I don't know that I've ever used form's timer but why is it considered
desirable to avoid?
Thanks,
Jim DeMarco
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.Tejpal
Sent: Wednesday, September 01, 2004 1:58 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Prompt after Form loads
Francisco,
As far as practicable, it is considered desirable to avoid
activation of form's timer. Following course of action is suggested.
Use a plain temporary form (it need not have any controls at all) to
open the main form (named F_Main). Put the code given below in Open
event of this form.
Now, whenever you open the the temporary form, the main form will be
displayed normally along with the prompt - as desired. (In the meanwhile
the temporary form will close by itself - the user will not become aware
of it).
Regards,
A.D.Tejpal
--------------
================================
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "F_Main"
MsgBox "Pl Check The Values"
Cancel = 1
End Sub
================================
----- Original Message -----
From: Francisco Tapia
To: Access Developers discussion and problem solving
Sent: Wednesday, September 01, 2004 21:58
Subject: Re: [AccessD] Prompt after Form loads
On Timmer w/ a static variable is what I ended up using (plus after it
fires I shoot the timer interval to 2hrs (more than enough time) so
it hopefully won't fire again until after their session is done.
On Wed, 1 Sep 2004 08:41:20 -0700, Francisco Tapia
wrote:
> Just tried it and the OnCurrent event also fires before the form is
> loaded :(, gonna try the OnTimmer...
>
>
>
> On Wed, 1 Sep 2004 08:35:54 -0700, Francisco Tapia
wrote:
> > I will try this option Gustav, thanks :D.
> >
> > btw, Rocky... What I meant by autoload was that in the Form_Load
event
> > I have code that loads data to the form. because it was in the
> > form_load event, the prompt was occuring before the user had a
chance
> > to see the form.
> >
> > On Wed, 1 Sep 2004 12:34:56 +0200, Gustav Brock
wrote:
> > > Hi Andy and Francisco
> > >
> > > I would suggest OnCurrent.
> > > To prevent multiple prompts, set a static flag:
> > >
> > > Static booIsPrompted As Boolean
> > >
> > > If booIsPrompted = False Then
> > > ' Ask if you user wish to load data.
> > >
> > > booIsPrompted = True
> > > End If
> >
> > --
> > -Francisco
> >
>
>
> --
> -Francisco
>
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
************************************************************************
***********
"This electronic message is intended to be for the use only of the named
recipient, and may contain information from Hudson Health Plan (HHP)
that is confidential or privileged. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or use of the contents of this message is strictly
prohibited. If you have received this message in error or are not the
named recipient, please notify us immediately, either by contacting the
sender at the electronic mail address noted above or calling HHP at
(914) 631-1611. If you are not the intended recipient, please do not
forward this email to anyone, and delete and destroy all copies of this
message. Thank You".
************************************************************************
***********
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From kaupca at chevrontexaco.com Wed Sep 1 13:26:29 2004
From: kaupca at chevrontexaco.com (Kaup, Chester A)
Date: Wed, 1 Sep 2004 13:26:29 -0500
Subject: [AccessD] Subform problem with detail section
Message-ID: <1375769556091B4DAABC159F944CA1BB07A194@bocnte2k4.boc.chevrontexaco.net>
So then, is the Data Entry option enabled?, YES
is the table you're adding records to you have a Primary Key ID? NO
What confuses me is the form works fine as a regular form but does not
work correctly when added to another form as a subform.
Thanks for the assistance.
Chester Kaup
Information Management Technician
IT-MidContinent/MidContinent Business Unit
CTN 8-687-7415
Outside 432-687-7414
No trees were killed in the sending of this message. However a large
number of electrons were terribly inconvenienced.
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco
Tapia
Sent: Wednesday, September 01, 2004 12:48 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Subform problem with detail section
So then, is the Data Entry option enabled?, is the table you're adding
records to you have a Primary Key ID?
On Wed, 1 Sep 2004 12:33:30 -0500, Kaup, Chester A
wrote:
> Guess I did not make it clear. I only want to be able to add new
> records not see the existing records. The problem is that none of the
> list boxes or text boxes in the detail section show up to enter data
> into.
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Wed Sep 1 13:35:29 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 11:35:29 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References:
Message-ID:
Agreed, I use them as a very last solution. They do CAUSE flickers,
and they interrupt other process as well. Such as adverse behavoirs
when using a combo bx and you find that your dropdown doesn't stay
dropped, because the timer continues to fire off in the background :D
On Wed, 1 Sep 2004 11:21:43 -0700, Charlotte Foust
wrote:
> I've used them under protest, but they tend to cause screen flickers and
> various other odd behavior and they fight with other form events. The
> form timer isn't implemented very well in Access, unlike the timer
> controls you can use in VB.
>
> Charlotte Foust
--
-Francisco
From gustav at cactus.dk Wed Sep 1 13:33:42 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 20:33:42 +0200
Subject: [AccessD] Time zones (was: internationalization)
In-Reply-To:
References:
<2337384085.20040901184839@cactus.dk>
Message-ID: <2443687429.20040901203342@cactus.dk>
Hi Francisco
> No, but after a quick archive search I found it, thanks :D
Fine.
> thanks Gustav, so to be clear, if I have a record from daylights
> savings time, and I query it in NON-Daylights saving time, this code
> will keep the record at it's accurate time, meaning
> if It was processed in the summer (GMT-8) at 4pm, and I query the
> record in the Winter will the record show up processed at 4pm or 3pm?,
> the UTC time stored in the db doesn't change, but when they query it,
> will.
Access doesn't record any time zone or daylight savings info so "a
time is a time" as is when stored.
For your example, there would be a difference if measured by the hour
but normally you count by the day. If you need precise hour (or
really: minute count) you would need to either store the time zone
info in another field or convert the local time to UTC, and then,
whenever you need to read the data, either regard any time as local or
convert it from UTC to local.
This is at least how I see it. Perhaps Charlotte can suggest a simpler
approach?
/gustav
>> Well, to Charlotte this seems to be no problem, but it was
>> considerations as those you describe I was thinking of.
>>
>> So far my thoughts would be to store date/time as UTC time, then do
>> the conversion (shift) later to whatever time zone you may need.
>> But what is your question really? Daylight savings is just another
>> twist to time zone issues. And remember, some time zones are offset by
>> 30 or even 15 minutes only.
>>
>> Did you see my code previously posted (2004-07-14)?
From artful at rogers.com Wed Sep 1 13:37:07 2004
From: artful at rogers.com (Arthur Fuller)
Date: Wed, 1 Sep 2004 14:37:07 -0400
Subject: [AccessD] BoY() and EoY() functions
Message-ID: <045701c49052$afd8b730$6501a8c0@rock>
I was positive that I had written these, but can't seem to find them.
BoY() accepts a date and returns the beginning of the year. EoY()
accepts a date and returns the end of the year. They must accept any
international system settings and return the desired dates in the same
format.
Anyone have them handy?
TIA,
Arthur
From fhtapia at gmail.com Wed Sep 1 13:47:01 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 11:47:01 -0700
Subject: [AccessD] Subform problem with detail section
In-Reply-To: <1375769556091B4DAABC159F944CA1BB07A194@bocnte2k4.boc.chevrontexaco.net>
References: <1375769556091B4DAABC159F944CA1BB07A194@bocnte2k4.boc.chevrontexaco.net>
Message-ID:
It is my opinion, that you should have a PKID of some sort for table
you are adding records, if not a Surrogate Key, then at the very least
a Natural Key. either is bether than NO key :D
On Wed, 1 Sep 2004 13:26:29 -0500, Kaup, Chester A
wrote:
> So then, is the Data Entry option enabled?, YES
> is the table you're adding records to you have a Primary Key ID? NO
>
> What confuses me is the form works fine as a regular form but does not
> work correctly when added to another form as a subform.
>
> Thanks for the assistance.
--
-Francisco
From gustav at cactus.dk Wed Sep 1 13:43:57 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 20:43:57 +0200
Subject: [AccessD] FW: Preparing Access Applications for Office 2003
Conversion
In-Reply-To:
References:
Message-ID: <9944302002.20040901204357@cactus.dk>
Hi Polly
Look up in the archive of April:
Access 2003 Digital Certificate
/gustav
> If any of you have experience/advice on this issue we would appreciate
> your input. Thanks in advance!
> -Polly P.
> ________________________________________________________________________
> ___________________
> PROBLEM:
> Converting from Office XP to Office 2003 raises security warning
> messages in Access .ADP applications that are delivered to users via a
> standard image.
> CONVERSION SECURITY ISSUE:
> When testing our .adp applications in an Office 2003 test environment,
> we find the following results:
> * When macro security is set to high applications basically do not
> function.
> * When macro security is set to medium, a security warning appears
> at startup:
> "This file may not be safe if it contains code that was intended to harm
> your computer. Do you want to open the file or cancel the operation?"
> If you select 'open' then the application appears to function normally
> * When macro security is set to low: Everything appears to
> function normally.
> OUR PROPOSED SOLUTION:
> Microsoft recommends setting Macro Security to medium or high in Access
> applications. After reading several articles, I'm leaning toward the
> following solution:
> Set Access macro security to medium and disable the security warning.
>>From what I've read, it's possible for an administrator to do this via
> Certificate Server on Windows 2000/2003 Server. The administrator could
> create a digital signature that would be valid across the domain. This
> digital signature certificate would essentially turn off the error
> message you see if macro security settings are at medium.
> QUESTIONS
> 1. How can we best adopt Microsoft's security recommendations and
> avoid this error message?
> 2. Does our solution seem sensible? Has anyone actually done this
> before? Are their details I'm overlooking? How have others dealt with
> this conversion?
> 3. Where can we see what security level we are currently using in
> Access 2002? The Tools, Macro, Security path isn't an option in 2002
> and I can't find much on Macro security in that environment.
> SPECS:
> We're currently running Office XP, Access 2002, MS Jet 4.0 sp 8
> (4.0.8618.0), Security Level: ?
> We're Migrating to Office 2003, Access 2003, MS Jet 4.0 sp 8
> (4.0.8618.0), Security Level Medium
From gustav at cactus.dk Wed Sep 1 13:48:39 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 20:48:39 +0200
Subject: [AccessD] BoY() and EoY() functions
In-Reply-To: <045701c49052$afd8b730$6501a8c0@rock>
References: <045701c49052$afd8b730$6501a8c0@rock>
Message-ID: <18444584619.20040901204839@cactus.dk>
Hi Arthur
BoY() is DateSerial(Year(datDate), 1, 1)
EoY() is DateSerial(Year(datDate) + 1, 1, 0)
They should really returns date/time values.
The format is up to you.
/gustav
> I was positive that I had written these, but can't seem to find them.
> BoY() accepts a date and returns the beginning of the year. EoY()
> accepts a date and returns the end of the year. They must accept any
> international system settings and return the desired dates in the same
> format.
From gustav at cactus.dk Wed Sep 1 13:53:36 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Wed, 1 Sep 2004 20:53:36 +0200
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References:
Message-ID: <8444881516.20040901205336@cactus.dk>
Hi Francisco
> Agreed, I use them as a very last solution. They do CAUSE flickers,
> and they interrupt other process as well. Such as adverse behavoirs
> when using a combo bx and you find that your dropdown doesn't stay
> dropped, because the timer continues to fire off in the background :D
Except in this case ... did you try the counter solution?
Works excellent here.
/gustav
> On Wed, 1 Sep 2004 11:21:43 -0700, Charlotte Foust
> wrote:
>> I've used them under protest, but they tend to cause screen flickers and
>> various other odd behavior and they fight with other form events. The
>> form timer isn't implemented very well in Access, unlike the timer
>> controls you can use in VB.
>>
>> Charlotte Foust
From fhtapia at gmail.com Wed Sep 1 14:03:52 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 12:03:52 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <141646033.20040901195941@cactus.dk>
References: <000501c4900e$25b38380$b274d0d5@minster33c3r25>
<4314961823.20040901123456@cactus.dk>
<9234229188.20040901175604@cactus.dk>
<15538768786.20040901191143@cactus.dk>
<141646033.20040901195941@cactus.dk>
Message-ID:
I know but if I use the OnCurrent Event, it fires before the form is
even drawn up on the screen, I have code in the Form_Load event, and
added a simple "TEST" messagebox to the OnCurrent Event, and found
that it does not FIRE after the form is visible, instead the user will
be prompted IF they want to OverRide data w/ Defaults before they can
read the data, the Timmer control helps to avoid this.... :(
The code in the Form_Load Event opens recordsets to load into the
primary form, calls a subform and listbox to load. When it ends, I'd
figure that the form would display but it does not. OnCurrent and
OnActivate also fire before the form is visible... so it appears that
the only solution is to leave this on the OnTimer event.
On Wed, 1 Sep 2004 19:59:41 +0200, Gustav Brock wrote:
> Hi Francisco
>
> It's not quite the same.
> The counter counts to one, then runs your code.
> No Timer fiddling.
>
> /gustav
>
>
>
>
> > just the same I did it as a boolean static
>
> > so
> > Static blnINIT As Boolean
> > IF blnINIT = FALSE then
> >
> > blnINIT = TRUE
> > Endif
>
> > On Wed, 1 Sep 2004 19:11:43 +0200, Gustav Brock wrote:
> >> Hi Francisco
> >>
> >> > Why a counter?
> >>
> >> Form loads => 1
> >> Form hits current first time => 2
> >>
> >> So:
> >>
> >> If lngCounter = 2 then
> >>
> >> End If
> >> lngCounter = lngCounter + 1
> >>
> >> /gustav
> >>
> >> >> But replace the Boolean with a counter: one, two ...
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
-Francisco
From kaupca at chevrontexaco.com Wed Sep 1 14:43:21 2004
From: kaupca at chevrontexaco.com (Kaup, Chester A)
Date: Wed, 1 Sep 2004 14:43:21 -0500
Subject: [AccessD] Subform problem with detail section
Message-ID: <1375769556091B4DAABC159F944CA1BB07A195@bocnte2k4.boc.chevrontexaco.net>
Added the primary key but text boxes and list boxes in the detail
section do not display.
Chester Kaup
Information Management Technician
IT-MidContinent/MidContinent Business Unit
CTN 8-687-7415
Outside 432-687-7414
No trees were killed in the sending of this message. However a large
number of electrons were terribly inconvenienced.
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco
Tapia
Sent: Wednesday, September 01, 2004 1:47 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Subform problem with detail section
It is my opinion, that you should have a PKID of some sort for table you
are adding records, if not a Surrogate Key, then at the very least a
Natural Key. either is bether than NO key :D
On Wed, 1 Sep 2004 13:26:29 -0500, Kaup, Chester A
wrote:
> So then, is the Data Entry option enabled?, YES
> is the table you're adding records to you have a Primary Key ID? NO
>
> What confuses me is the form works fine as a regular form but does not
> work correctly when added to another form as a subform.
>
> Thanks for the assistance.
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Wed Sep 1 16:14:42 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 14:14:42 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <8444881516.20040901205336@cactus.dk>
References:
<8444881516.20040901205336@cactus.dk>
Message-ID:
I tried the counter solution, and it fires before the form is "visible"
On Wed, 1 Sep 2004 20:53:36 +0200, Gustav Brock wrote:
> Hi Francisco
>
> > Agreed, I use them as a very last solution. They do CAUSE flickers,
> > and they interrupt other process as well. Such as adverse behavoirs
> > when using a combo bx and you find that your dropdown doesn't stay
> > dropped, because the timer continues to fire off in the background :D
>
> Except in this case ... did you try the counter solution?
> Works excellent here.
--
-Francisco
From fhtapia at gmail.com Wed Sep 1 16:17:08 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 14:17:08 -0700
Subject: [AccessD] Prompt after Form loads
In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F02D0888E@xlivmbx21.aig.com>
References: <1D7828CDB8350747AFE9D69E0E90DA1F02D0888E@xlivmbx21.aig.com>
Message-ID:
I have tried this as well, and I do get the "Hello" Message box,
however the user would have to click off the form and then back on
before they saw this message.... :|.
remember my production form does this:
Form Open -> set some object classes,
Form Load -> open recordsets load fields
Form Timer -> after 1ms, check if key data fields match defaults.
Access 2000 (ADP)
On Wed, 1 Sep 2004 16:57:50 -0400 , Heenan, Lambert
wrote:
> The Activate event should do the trick, you just need to keep tack of how
> many times it fires. I just tried this out with a form/subform setup, and
> the following code seems to work just fine
>
> Private Sub Form_Activate()
> Static lngLoaded As Long
> lngLoaded = lngLoaded + 1
> DoEvents
> If lngLoaded > 1 Then MsgBox "Hello "
> End Sub
>
> The DoEvents does not seem to be necessary, but I thought I'd put it in
> anyway.
>
> What I found was that the entire form and subform was displayed with the
> exception of some controls on the form which have statements like this...
>
> =Count([cFaceAmount])
>
> ... in their control source property.
>
--
-Francisco
From Mark.Mitsules at ngc.com Wed Sep 1 16:42:05 2004
From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News))
Date: Wed, 1 Sep 2004 17:42:05 -0400
Subject: [AccessD] Access & AutoCAD
Message-ID:
Has anyone tackled this combination? There is ONE example in the AutoCAD
samples folder. There is ONE book that I found regarding database
connectivity (circa 1999). ...and a DISTINCT lack of web-based material as
far as I can tell:( I would be most appreciative for pointers towards any
of the following: recent books (AutoCAD 2002 or later), web-based tutorials,
web-based examples, personal examples, cave paintings...anything.
Thanks in advance for any/all information.
Mark
Conversely, I am willing to pay $40 to anyone willing to take the AutoCAD
help files and develop a booklet within the next 2 weeks, including a table
of contents, that will allow me to chronologically work my way through a
project.
From martyconnelly at shaw.ca Wed Sep 1 15:09:25 2004
From: martyconnelly at shaw.ca (MartyConnelly)
Date: Wed, 01 Sep 2004 13:09:25 -0700
Subject: [AccessD] FW: Preparing Access Applications for Office 2003
Conversion
References:
Message-ID: <41362C75.4010302@shaw.ca>
I have handled it by turning security off in registry keys. Your net
admin could handle this system wide.
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level
If the value is 1, then the macro security of Access 2003 is set to low.
If the value is 2, then the macro security of Access 2003 is set to medium.
If the value is 3, then the macro security of Access 2003 is set to high.
Not sure if certmgr.exe to create certificate from Win2003 has to be
created for each new version of the ADP
which could be a pain if doing a lot of mods.
See my post Re: [AccessD] Access 2003, Runtime, and Built-in Security
Aug 2 2004
You can check this registry key in code below
Not sure about Access 2002 version=10
If Application.Version >= 11 Then
'set it
Application.AutomationSecurity = 1 ' msoAutomationSecurityLow
'or read it
debug.print "Security level=" & Application.AutomationSecurity
End If
Polly R Peterson wrote:
>If any of you have experience/advice on this issue we would appreciate
>your input. Thanks in advance!
>-Polly P.
>________________________________________________________________________
>___________________
>
>
>PROBLEM:
>Converting from Office XP to Office 2003 raises security warning
>messages in Access .ADP applications that are delivered to users via a
>standard image.
>
>
>CONVERSION SECURITY ISSUE:
>When testing our .adp applications in an Office 2003 test environment,
>we find the following results:
>
>* When macro security is set to high applications basically do not
>function.
>* When macro security is set to medium, a security warning appears
>at startup:
>
>"This file may not be safe if it contains code that was intended to harm
>your computer. Do you want to open the file or cancel the operation?"
>
>If you select 'open' then the application appears to function normally
>
>* When macro security is set to low: Everything appears to
>function normally.
>
>
>OUR PROPOSED SOLUTION:
>Microsoft recommends setting Macro Security to medium or high in Access
>applications. After reading several articles, I'm leaning toward the
>following solution:
>Set Access macro security to medium and disable the security warning.
>>From what I've read, it's possible for an administrator to do this via
>Certificate Server on Windows 2000/2003 Server. The administrator could
>create a digital signature that would be valid across the domain. This
>digital signature certificate would essentially turn off the error
>message you see if macro security settings are at medium.
>
>
>QUESTIONS
>1. How can we best adopt Microsoft's security recommendations and
>avoid this error message?
>2. Does our solution seem sensible? Has anyone actually done this
>before? Are their details I'm overlooking? How have others dealt with
>this conversion?
>3. Where can we see what security level we are currently using in
>Access 2002? The Tools, Macro, Security path isn't an option in 2002
>and I can't find much on Macro security in that environment.
>
>
>
>SPECS:
>We're currently running Office XP, Access 2002, MS Jet 4.0 sp 8
>(4.0.8618.0), Security Level: ?
>
>We're Migrating to Office 2003, Access 2003, MS Jet 4.0 sp 8
>(4.0.8618.0), Security Level Medium
>
>
--
Marty Connelly
Victoria, B.C.
Canada
From bchacc at san.rr.com Wed Sep 1 17:24:02 2004
From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software)
Date: Wed, 1 Sep 2004 15:24:02 -0700
Subject: [AccessD] Will an A2K MDE run unde A2003?
References: <001701c48fb3$d92f7320$6601a8c0@HAL9002>
<00f801c48fd6$6f473f10$6601a8c0@HAL9002> <413570D0.8010209@shaw.ca>
Message-ID: <024201c49072$628680f0$6601a8c0@HAL9002>
If I have to get Access 2003 do you know anything about how good the
deployment feature is?
Regards,
Rocky Smolin
Beach Access Software
http://www.e-z-mrp.com
----- Original Message -----
From: "MartyConnelly"
To: "Access Developers discussion and problem solving"
Sent: Tuesday, August 31, 2004 11:48 PM
Subject: Re: [AccessD] Will an A2K MDE run unde A2003?
> SageKey has an MSI deployment script for Access 2003. $400 It also
> removes the need for a digital certificate.
> which might prove to be a problem or just a nuisance with Access 2000
> MDE running under 2003.
> I guess you will find out.
>
> Rocky Smolin - Beach Access Software wrote:
>
> >For my market having Access is quite common. So it's not really an
issue.
> >I've got Wise and could, I suppose, get the Sagekey script for A2K. But
> >that's already 2 versions behind the latest.
> >
> >I understand that A2003 has a pretty decent deployment facility. Yes?
> >
> >If this prospect wants the software and it will only run in A2003 I'll
get
> >A2003, and then I'll have a chance to test the deployment features.
> >
> >Rocky
> >
> >----- Original Message -----
> >From: "Francisco Tapia"
> >To: "Access Developers discussion and problem solving"
> >
> >Sent: Tuesday, August 31, 2004 5:03 PM
> >Subject: Re: [AccessD] Will an A2K MDE run unde A2003?
> >
> >
> >
> >
> >>I am curious as to why you don't deploy it w/ a runtime?, I mean you
> >>don't have it as opensource to allow the customer to work w/ the app.
> >>
> >>On Tue, 31 Aug 2004 16:40:07 -0700, Rocky Smolin - Beach Access
> >>Software wrote:
> >>
> >>
> >>>Dear List:
> >>>
> >>>I have to call a guy tomorrow morning and tell him whether my software
> >>>
> >>>
> >will work in Access 2003. I compile it into an MDE under Access 2000. I
> >know that MDE will run under Access 2002. Will the MDE run in 2003?
> >
> >
> >>>I also have Access 2002 which I could use to make an MDE. Would an MDE
> >>>
> >>>
> >compiled under Access 2002 run under Access 2003?
> >
> >
> >>--
> >>-Francisco
> >>--
> >>_______________________________________________
> >>AccessD mailing list
> >>AccessD at databaseadvisors.com
> >>http://databaseadvisors.com/mailman/listinfo/accessd
> >>Website: http://www.databaseadvisors.com
> >>
> >>
> >>
> >
> >
> >
>
> --
> Marty Connelly
> Victoria, B.C.
> Canada
>
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
From jwcolby at colbyconsulting.com Wed Sep 1 19:18:23 2004
From: jwcolby at colbyconsulting.com (John W. Colby)
Date: Wed, 1 Sep 2004 20:18:23 -0400
Subject: [AccessD] Every 100th record
In-Reply-To:
Message-ID: <002801c49082$5f78ff90$80b3fea9@ColbyM6805>
And for the record, by the time I index this database it will be well over a
terabyte. If I end up merging in their other databases it will be several
terabytes.
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia
Sent: Tuesday, August 31, 2004 8:02 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Every 100th record
For the record I think it was me who applied the term VLDB to his db :D.
Even thow I've been my dept's DBA for the last 3 years, I have not run into
any company database that touches the Millions of records, the only tables
that I have that contain a near enough number of consequential tables,
(auditing)
On Tue, 31 Aug 2004 19:32:55 -0400, Arthur Fuller wrote:
> Just to put things in perspective, JC, the first client of the people
> who developed MySQL had 60M rows in their principal table. There are
> lots of apps way bigger than that. I once had a client that was adding
> 10M rows per month to the table of concern (this was an app recording
> seismic activity from several hundred meters). I must caution you that
> you should not use the term VLDB as loosely as you have been using it.
> You don't know the meaning of VLDB -- not yet at least. You're
> beginning to appreciate the turf, however. Once I bid on a project
> that had 100M rows each containing a graphic file. Not to say that
> size is everything, but IMO VLDB comprises at least a TB, and often
> many hundreds of TBs.
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From jwcolby at colbyconsulting.com Wed Sep 1 19:20:03 2004
From: jwcolby at colbyconsulting.com (John W. Colby)
Date: Wed, 1 Sep 2004 20:20:03 -0400
Subject: [AccessD] Firefox opens two windows
In-Reply-To:
Message-ID: <002901c49082$979f6350$80b3fea9@ColbyM6805>
Can anyone point me to why suddenly FireFox is opening TWO browser windows
whenever I open any link, as in an email or such? More importantly, how to
fix it.
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia
Sent: Tuesday, August 31, 2004 8:02 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Every 100th record
For the record I think it was me who applied the term VLDB to his db :D.
Even thow I've been my dept's DBA for the last 3 years, I have not run into
any company database that touches the Millions of records, the only tables
that I have that contain a near enough number of consequential tables,
(auditing)
On Tue, 31 Aug 2004 19:32:55 -0400, Arthur Fuller wrote:
> Just to put things in perspective, JC, the first client of the people
> who developed MySQL had 60M rows in their principal table. There are
> lots of apps way bigger than that. I once had a client that was adding
> 10M rows per month to the table of concern (this was an app recording
> seismic activity from several hundred meters). I must caution you that
> you should not use the term VLDB as loosely as you have been using it.
> You don't know the meaning of VLDB -- not yet at least. You're
> beginning to appreciate the turf, however. Once I bid on a project
> that had 100M rows each containing a graphic file. Not to say that
> size is everything, but IMO VLDB comprises at least a TB, and often
> many hundreds of TBs.
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From dwaters at usinternet.com Wed Sep 1 20:29:53 2004
From: dwaters at usinternet.com (Dan Waters)
Date: Wed, 1 Sep 2004 20:29:53 -0500
Subject: [AccessD] Firefox opens two windows
In-Reply-To: <29479305.1094086527041.JavaMail.root@sniper12.usinternet.com>
Message-ID: <000401c4908c$5953ecb0$de1811d8@danwaters>
John,
I had this same problem a while back. I went to the FireFox site and found
a link to their user group. I did a search using some appropriate phrase,
and did find a reference to the problem. Someone had found the specific
problem and posted a patch. I installed it and firefox has worked well
since.
This was the name of the patch:
firefox_bug_246078_rev3.reg
Best of luck!
Dan
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Wednesday, September 01, 2004 7:20 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Firefox opens two windows
Can anyone point me to why suddenly FireFox is opening TWO browser windows
whenever I open any link, as in an email or such? More importantly, how to
fix it.
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia
Sent: Tuesday, August 31, 2004 8:02 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Every 100th record
For the record I think it was me who applied the term VLDB to his db :D.
Even thow I've been my dept's DBA for the last 3 years, I have not run into
any company database that touches the Millions of records, the only tables
that I have that contain a near enough number of consequential tables,
(auditing)
On Tue, 31 Aug 2004 19:32:55 -0400, Arthur Fuller wrote:
> Just to put things in perspective, JC, the first client of the people
> who developed MySQL had 60M rows in their principal table. There are
> lots of apps way bigger than that. I once had a client that was adding
> 10M rows per month to the table of concern (this was an app recording
> seismic activity from several hundred meters). I must caution you that
> you should not use the term VLDB as loosely as you have been using it.
> You don't know the meaning of VLDB -- not yet at least. You're
> beginning to appreciate the turf, however. Once I bid on a project
> that had 100M rows each containing a graphic file. Not to say that
> size is everything, but IMO VLDB comprises at least a TB, and often
> many hundreds of TBs.
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Wed Sep 1 21:06:21 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 19:06:21 -0700
Subject: [AccessD] Firefox opens two windows
In-Reply-To: <002901c49082$979f6350$80b3fea9@ColbyM6805>
References: <002901c49082$979f6350$80b3fea9@ColbyM6805>
Message-ID:
which version of firefox?, I'm running 9.3 and have not seen this problem.
On Wed, 1 Sep 2004 20:20:03 -0400, John W. Colby
wrote:
> Can anyone point me to why suddenly FireFox is opening TWO browser windows
> whenever I open any link, as in an email or such? More importantly, how to
> fix it.
>
> John W. Colby
> www.ColbyConsulting.com
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia
> Sent: Tuesday, August 31, 2004 8:02 PM
> To: Access Developers discussion and problem solving
> Subject: Re: [AccessD] Every 100th record
>
> For the record I think it was me who applied the term VLDB to his db :D.
> Even thow I've been my dept's DBA for the last 3 years, I have not run into
> any company database that touches the Millions of records, the only tables
> that I have that contain a near enough number of consequential tables,
> (auditing)
>
> On Tue, 31 Aug 2004 19:32:55 -0400, Arthur Fuller wrote:
> > Just to put things in perspective, JC, the first client of the people
> > who developed MySQL had 60M rows in their principal table. There are
> > lots of apps way bigger than that. I once had a client that was adding
> > 10M rows per month to the table of concern (this was an app recording
> > seismic activity from several hundred meters). I must caution you that
> > you should not use the term VLDB as loosely as you have been using it.
> > You don't know the meaning of VLDB -- not yet at least. You're
> > beginning to appreciate the turf, however. Once I bid on a project
> > that had 100M rows each containing a graphic file. Not to say that
> > size is everything, but IMO VLDB comprises at least a TB, and often
> > many hundreds of TBs.
>
> --
> -Francisco
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
-Francisco
From jwcolby at colbyconsulting.com Wed Sep 1 21:18:35 2004
From: jwcolby at colbyconsulting.com (John W. Colby)
Date: Wed, 1 Sep 2004 22:18:35 -0400
Subject: [AccessD] Firefox opens two windows
In-Reply-To: <000401c4908c$5953ecb0$de1811d8@danwaters>
Message-ID: <002a01c49093$2abf2a20$80b3fea9@ColbyM6805>
Works great,thanks!
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters
Sent: Wednesday, September 01, 2004 9:30 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Firefox opens two windows
John,
I had this same problem a while back. I went to the FireFox site and found
a link to their user group. I did a search using some appropriate phrase,
and did find a reference to the problem. Someone had found the specific
problem and posted a patch. I installed it and firefox has worked well
since.
This was the name of the patch:
firefox_bug_246078_rev3.reg
Best of luck!
Dan
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Wednesday, September 01, 2004 7:20 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Firefox opens two windows
Can anyone point me to why suddenly FireFox is opening TWO browser windows
whenever I open any link, as in an email or such? More importantly, how to
fix it.
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia
Sent: Tuesday, August 31, 2004 8:02 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Every 100th record
For the record I think it was me who applied the term VLDB to his db :D.
Even thow I've been my dept's DBA for the last 3 years, I have not run into
any company database that touches the Millions of records, the only tables
that I have that contain a near enough number of consequential tables,
(auditing)
On Tue, 31 Aug 2004 19:32:55 -0400, Arthur Fuller wrote:
> Just to put things in perspective, JC, the first client of the people
> who developed MySQL had 60M rows in their principal table. There are
> lots of apps way bigger than that. I once had a client that was adding
> 10M rows per month to the table of concern (this was an app recording
> seismic activity from several hundred meters). I must caution you that
> you should not use the term VLDB as loosely as you have been using it.
> You don't know the meaning of VLDB -- not yet at least. You're
> beginning to appreciate the turf, however. Once I bid on a project
> that had 100M rows each containing a graphic file. Not to say that
> size is everything, but IMO VLDB comprises at least a TB, and often
> many hundreds of TBs.
--
-Francisco
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From davide at dalyn.co.nz Wed Sep 1 21:26:42 2004
From: davide at dalyn.co.nz (David Emerson)
Date: Thu, 02 Sep 2004 14:26:42 +1200
Subject: [AccessD] TransferText Causing System Crash
In-Reply-To: <5.2.0.9.0.20040901065033.00b2c0b0@mail.dalyn.co.nz>
References:
Message-ID: <5.2.0.9.0.20040902142408.00baf360@mail.dalyn.co.nz>
Solution has been found! It seemed to be something to do with the
shortcut!!! I recreated the shortcut and the crashing stopped. I don't
know why the shortcut would affect things (why would only 2 commands out of
an entire library cause it to cash?)
David
At 1/09/2004, you wrote:
>Thanks for the suggestion. All the file names have the extension included.
>
>David
>
>At 31/08/2004, you wrote:
>>Hi
>>
>>
>>My similar experience with Access(97) running under XP (with Office XP
>>installed) when exporting text data was that if the export text filename
>>did not have an file extension e.g. MyDownloadFile, Access would hang.
>>Exporting to MyDownloadFile.txt would solve the issue. May or may not
>>be relevant here (I was using Acc 97 but it was the XP OS (or Office XP)
>>that seemed to be the issue here).
>>
>>Richard
>>
>>-----Original Message-----
>>From: David Emerson [mailto:davide at dalyn.co.nz]
>>Sent: 30 August 2004 06:26
>>To: Access Developers discussion and problem solving
>>Subject: Re: [AccessD] TransferText Causing System Crash
>>
>>That solved most of the problem. Now the commands work on the server.
>>
>>However, it is used as a terminal server. Although it runs fine when
>>using
>>the program direct on the computer, if anyone connects to a terminal
>>server
>>session they still get the same crashing.
>>
>>Any pointers on this one!!
>>
>>David
>>
>>At 27/08/2004, you wrote:
>> >Oh and one other thing to check that you have installed
>> >Overview of Office XP Service Pack 3 for Access 2002 Runtime. Note this
>>is
>> >in addition to normal SP3
>> >http://support.microsoft.com/default.aspx?scid=kb;en-us;834693&Product=
>>acc
>> >
>> >MartyConnelly wrote:
>> >
>> >>Well it looks like different Office XP service packs on the machines,
>>XP
>> >>SP-3 on your development machine.
>> >>Are you doing a full new runtime install on the server, or just
>>passing
>> >>over the adp file to the server with changes.?
>> >>This could lead to problems.
>> >>
>> >>David Emerson wrote:
>> >>
>> >>>Group,
>> >>>
>> >>>I have an AXP ade/SQL2000 runtime setup running on Windows 2003
>> >>>Server. When I use the DoCmd.TransferSpreadsheet or
>>DoCmd.TransferText
>> >>>commands my database crashes (Unexpected error in MSAccess.exe).
>> >>>
>> >>>Examples are -
>> >>>
>> >>>DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel7,
>> >>>strTableName, strFullName
>> >>>DoCmd.TransferSpreadsheet acImport, , "dbo.ttmpTOURawData",
>>strFullName,
>> >>>False
>> >>>DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97,
>> >>>"dbo.ttmpSwitchNewIn", Me!txtSwitchFile, True
>> >>>DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97,
>> >>>"dbo.ttmpTemporary", Me!txtDataFile
>> >>>DoCmd.TransferText acExportDelim, , "dbo.ttmpAgedDebtorDDebitExp",
>> >>>strFullName
>> >>>DoCmd.TransferText acExportDelim, , "dbo.ttmpExportMerge",
>> >>>DLookup("RootFolder", "tblCompany") & "\Merge\CustMerge.TXT", True
>> >>>DoCmd.TransferText acExportDelim, , "dbo.ttmpSwitchNewOut",
>> >>>DLookup("RootFolder", "tblCompany") & "\Switch\CustSwitch.TXT", True
>> >>>DoCmd.TransferText acImportDelim, , "dbo.ttmpTOURawData",
>>strFullName, False
>> >>>
>> >>>The commands work on my development machine (WXP Professional with
>> >>>Office 97 and Office XP).
>> >>>
>> >>>I have tried uninstalling and reinstalling the runtime application.
>> >>>
>> >>>Other commands in the Access library seem to work ok. The version of
>>
>> >>>the olb (C:\Program Files\Microsoft OfficeXP\Office10\msacc.olb) on
>>my
>> >>>machine is 10.0.6308.0. The runtime machine (C:\Program
>>Files\Microsoft
>> >>>Access Runtime\Office10\msacc.olb) has version 10.0.2627.1.
>> >>>
>> >>>Any clues why the transfer commands might be causing problems?
>> >>>
>> >>>
>> >>>Regards
>> >>>
>> >>>David Emerson
>> >>>Dalyn Software Ltd
>> >>>25 Cunliffe St, Churton Park
>> >>>Wellington, New Zealand
>> >>>Ph/Fax (04) 478-7456
>> >>>Mobile 027-280-9348
>
>--
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
From jmoss111 at bellsouth.net Wed Sep 1 21:30:35 2004
From: jmoss111 at bellsouth.net (JMoss)
Date: Wed, 1 Sep 2004 21:30:35 -0500
Subject: [AccessD] Every 100th record
In-Reply-To: <000d01c48fba$264f5980$80b3fea9@ColbyM6805>
Message-ID:
John,
I can't help but think that you could lose as much as 10 - 15 % of the
volume of this database by doing some type of dedup and / or householding
process.
I wonder about the logic of mixing lists of different types in one database.
It seems to me that the customer wouldn't want to mail an offer to someone
from a sports list to someone who got added to a list because they had
purchased knitting supplies or some similar type item. The database
marketing firm that I worked with kept separate databases. Merging different
types of customers into a mail blast seems like a blast or shotgun approach,
or someone just selling a lot of addresses in a very non methodical manner.
Do you get enough of a performance boost from a 64 bit processor running a
32 bit OS or application to make it worth while? I would think that multiple
32 bit cpu's would be the ticket for 32 bit apps.
Jim
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 7:25 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
In fact the client has another database that has 125 million addresses,
another that has 14 million more people, and another that handles all their
sports mailings. They would like to merge them all. I just bought a 3ghz
socket 754 Athlon 64 which I am loading with Win2K and SQL Server tonight.
I can only pray that this gives me SOMETHING in the way of a speedup against
my old AMD Athlon 2500. I have to examine my options, down to splitting up
the database and having different machines process pieces. I also have to
learn to tune SQL Server.
Since I am starting from "know absolutely nothing" it shouldn't be too hard
to get better results over time. ;-)
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller
Sent: Tuesday, August 31, 2004 7:33 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
Just to put things in perspective, JC, the first client of the people who
developed MySQL had 60M rows in their principal table. There are lots of
apps way bigger than that. I once had a client that was adding 10M rows per
month to the table of concern (this was an app recording seismic activity
from several hundred meters). I must caution you that you should not use the
term VLDB as loosely as you have been using it. You don't know the meaning
of VLDB -- not yet at least. You're beginning to appreciate the turf,
however. Once I bid on a project that had 100M rows each containing a
graphic file. Not to say that size is everything, but IMO VLDB comprises at
least a TB, and often many hundreds of TBs.
I just got a contract with a company using MySQL whose test database's most
important table comprises 100M rows. They expect their clients to have 10*
as many rows. My job is to optimize the queries. Fortunately, I can assume
any hardware I deem necessary to do it. They are after sub-second retrieves
against 1B rows, with maybe 1000 users. Life's a beach and then you drown. I
don't know if I can deliver what they want, but what I can deliver is
benchmarks against the various DBs that I'm comfortable with -- SQL 2000,
Oracle, MySQL and DB/2. I figure that if none of them can do it, I'm off the
hook :)
The difficult part of this new assignment is that there's no way I can
duplicate the hardware resources required to emulate the required system, so
I have to assume that the benchmarks on my local system will hold up in a
load-leveling 100-server environment -- at least until I have something
worthy of installing and then test it in that environment.
I sympathize and empathize with your situation, JC. It's amazing how many of
our tried-and-true solutions go right out the window when you escalate the
number of rows to 100M -- and then factor in multiple joins. Stuff that
looks spectacular with only 1M rows suddenly sucks big-time when applied to
100M rows.
Arthur
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 7:13 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
Paul,
In fact I am trying to make this run on my home system which is part of the
problem. This week I am playing "stay-at-home dad" as my wife starts the
chhool year this week and has all those 1st week teacher meetings /
training.
I have never come even close to a db this size and it has definitely been a
learning experience. Here's hoping I survive.
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers
Sent: Tuesday, August 31, 2004 3:49 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
65 million! What an amazing world you work it. Is there ever time in the
week to pop home for an hour?
Cheers paul
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From Developer at UltraDNT.com Wed Sep 1 22:36:44 2004
From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT))
Date: Wed, 1 Sep 2004 23:36:44 -0400
Subject: [AccessD] Rotating Excel
In-Reply-To: <001101c48fc0$747cdf50$80b3fea9@ColbyM6805>
Message-ID: <000201c4909e$14a42230$0201a8c0@COA3>
Excel has a Transpose command, which would do what you are asking once
in the worksheet
... BUT ... It also has a 255 column limit.
How about an ADO recordset ... Loop the fields, write the names to
table?
hth
Steve
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 9:10 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Rotating Excel
I need to export data from this big database into Excel. The objective
= is to get the FIELD NAMES out with data from about 100 records. I
then = need to rotate excel such that the field names are down the left
side and the = data for each record runs down vertically, the data for
any given field runs across horizontally. Can anyone tell me how to
rotate the spreadsheet = such that the field names are down the left
side?
I assume that the export MUST go out with the field names across the top
row, and the data below that. =20
Can anyone tell me how to get the entire 600+ fields out in a single =
export? When I try to use dts it works but complains (fails) if I try
and export more than about 240 fields. It LOOKS LIKE perhaps the length
of the = field names in the first row is confusing Excel. It is telling
me I am = exceeding the 1000 column limit (or some such)
What I really want to do is export all the columns (about 600) with the
field names in the top row, then rotate the whole shootin match. Any
assistance on any of this is greatly appreciated.
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 jwcolby at colbyconsulting.com Wed Sep 1 22:52:17 2004
From: jwcolby at colbyconsulting.com (John W. Colby)
Date: Wed, 1 Sep 2004 23:52:17 -0400
Subject: [AccessD] Every 100th record
In-Reply-To:
Message-ID: <002c01c490a0$40f98d00$80b3fea9@ColbyM6805>
Jim,
I think the merge idea is simply to maximize the sheer number of names in
the database. From what they are saying, they get info on various people
over time and need to update those people. Perhaps a poll on car buying, or
smoking, or whatever. If those fields don't already exist in the "big
table" they add new ones to hold the info. Thus from that perspective
"sports" is just another interest, no different from hunting or fishing or
gun ownership.
As for the 64 bit processor helping with 32 bit apps, nope, not at all -
however it certainly doesn't slow 32 bit apps down. However I understand
that a 64 bit version of Windows 2003 and SQL Server are available. I
purchased the Action Pack which AFAICT contains these things. I am hoping
that the 64 bit versions may give some tangible benefit. If not, at least I
have a current generation motherboard / processor with current generation
SATA, gbit LAN etc. I purchased the MSI K8 Neo Platinum motherboard which
appears to be a pretty solid system. It provides all the raid 0/1/10 your
heard could desire, can directly manipulate 4 SATA drives and 4 IDE drives
and can combine these drives in any order into RAID arrays. These machines
have gbit LAN built in, coming right off the NVIDIA core (not across the PCI
bus). I am putting in a 5 port gbit switch so they can talk to each other
at top speed.
I have acknowledged TOTAL ignorance about the ins and outs of SQL Server but
I am learning as fast as I can. My reading indicates that SQL Server can
distribute a database across entirely different machines. Again how this is
done I haven't a clue but in order to find out (and test it) I need two
machines. I will shortly have two of these A64 machines to experiment with.
If this can indeed be done and the results are good, I can take it from
there. I will keep the group informed of my findings.
If I can get this all to work I stand to have a good solid client and a lot
of work. If I can't I stand to have a totally overpowered (but NICE) dev
machine and a lot more SQL Server knowledge than I currently possess. In
fact my Insurance Call Center client needs to go to SQL Server as well so
this will hopefully help me there as well.
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JMoss
Sent: Wednesday, September 01, 2004 10:31 PM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] Every 100th record
John,
I can't help but think that you could lose as much as 10 - 15 % of the
volume of this database by doing some type of dedup and / or householding
process.
I wonder about the logic of mixing lists of different types in one database.
It seems to me that the customer wouldn't want to mail an offer to someone
from a sports list to someone who got added to a list because they had
purchased knitting supplies or some similar type item. The database
marketing firm that I worked with kept separate databases. Merging different
types of customers into a mail blast seems like a blast or shotgun approach,
or someone just selling a lot of addresses in a very non methodical manner.
Do you get enough of a performance boost from a 64 bit processor running a
32 bit OS or application to make it worth while? I would think that multiple
32 bit cpu's would be the ticket for 32 bit apps.
Jim
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 7:25 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
In fact the client has another database that has 125 million addresses,
another that has 14 million more people, and another that handles all their
sports mailings. They would like to merge them all. I just bought a 3ghz
socket 754 Athlon 64 which I am loading with Win2K and SQL Server tonight. I
can only pray that this gives me SOMETHING in the way of a speedup against
my old AMD Athlon 2500. I have to examine my options, down to splitting up
the database and having different machines process pieces. I also have to
learn to tune SQL Server.
Since I am starting from "know absolutely nothing" it shouldn't be too hard
to get better results over time. ;-)
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller
Sent: Tuesday, August 31, 2004 7:33 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
Just to put things in perspective, JC, the first client of the people who
developed MySQL had 60M rows in their principal table. There are lots of
apps way bigger than that. I once had a client that was adding 10M rows per
month to the table of concern (this was an app recording seismic activity
from several hundred meters). I must caution you that you should not use the
term VLDB as loosely as you have been using it. You don't know the meaning
of VLDB -- not yet at least. You're beginning to appreciate the turf,
however. Once I bid on a project that had 100M rows each containing a
graphic file. Not to say that size is everything, but IMO VLDB comprises at
least a TB, and often many hundreds of TBs.
I just got a contract with a company using MySQL whose test database's most
important table comprises 100M rows. They expect their clients to have 10*
as many rows. My job is to optimize the queries. Fortunately, I can assume
any hardware I deem necessary to do it. They are after sub-second retrieves
against 1B rows, with maybe 1000 users. Life's a beach and then you drown. I
don't know if I can deliver what they want, but what I can deliver is
benchmarks against the various DBs that I'm comfortable with -- SQL 2000,
Oracle, MySQL and DB/2. I figure that if none of them can do it, I'm off the
hook :)
The difficult part of this new assignment is that there's no way I can
duplicate the hardware resources required to emulate the required system, so
I have to assume that the benchmarks on my local system will hold up in a
load-leveling 100-server environment -- at least until I have something
worthy of installing and then test it in that environment.
I sympathize and empathize with your situation, JC. It's amazing how many of
our tried-and-true solutions go right out the window when you escalate the
number of rows to 100M -- and then factor in multiple joins. Stuff that
looks spectacular with only 1M rows suddenly sucks big-time when applied to
100M rows.
Arthur
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 7:13 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
Paul,
In fact I am trying to make this run on my home system which is part of the
problem. This week I am playing "stay-at-home dad" as my wife starts the
chhool year this week and has all those 1st week teacher meetings /
training.
I have never come even close to a db this size and it has definitely been a
learning experience. Here's hoping I survive.
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers
Sent: Tuesday, August 31, 2004 3:49 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Every 100th record
65 million! What an amazing world you work it. Is there ever time in the
week to pop home for an hour? Cheers paul
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From accessd at shaw.ca Wed Sep 1 21:54:54 2004
From: accessd at shaw.ca (Jim Lawrence (AccessD))
Date: Wed, 01 Sep 2004 19:54:54 -0700
Subject: [AccessD] Rotating Excel
In-Reply-To: <001101c48fc0$747cdf50$80b3fea9@ColbyM6805>
Message-ID:
Hi John:
I believe there is a 1000 column and 65000 row limit to an excel
spreadsheet.
Jim
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 6:10 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Rotating Excel
I need to export data from this big database into Excel. The objective = is
to get the FIELD NAMES out with data from about 100 records. I then = need
to rotate excel such that the field names are down the left side and the =
data for each record runs down vertically, the data for any given field runs
across horizontally. Can anyone tell me how to rotate the spreadsheet =
such that the field names are down the left side?
I assume that the export MUST go out with the field names across the top
row, and the data below that. =20
Can anyone tell me how to get the entire 600+ fields out in a single =
export? When I try to use dts it works but complains (fails) if I try and
export more than about 240 fields. It LOOKS LIKE perhaps the length of the
= field names in the first row is confusing Excel. It is telling me I am =
exceeding the 1000 column limit (or some such)
What I really want to do is export all the columns (about 600) with the
field names in the top row, then rotate the whole shootin match. Any
assistance on any of this is greatly appreciated.
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 jwcolby at colbyconsulting.com Wed Sep 1 23:09:24 2004
From: jwcolby at colbyconsulting.com (John W. Colby)
Date: Thu, 2 Sep 2004 00:09:24 -0400
Subject: [AccessD] Rotating Excel
In-Reply-To: <000201c4909e$14a42230$0201a8c0@COA3>
Message-ID: <002d01c490a2$a5d4e0b0$80b3fea9@ColbyM6805>
I may end up doing a little program. I was hoping for something built in.
Let me look at the transpose thingie.
Thanks,
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Conklin
(Developer at UltraDNT)
Sent: Wednesday, September 01, 2004 11:37 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Rotating Excel
Excel has a Transpose command, which would do what you are asking once in
the worksheet
... BUT ... It also has a 255 column limit.
How about an ADO recordset ... Loop the fields, write the names to table?
hth
Steve
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 9:10 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Rotating Excel
I need to export data from this big database into Excel. The objective = is
to get the FIELD NAMES out with data from about 100 records. I then = need
to rotate excel such that the field names are down the left side and the =
data for each record runs down vertically, the data for any given field runs
across horizontally. Can anyone tell me how to rotate the spreadsheet =
such that the field names are down the left side?
I assume that the export MUST go out with the field names across the top
row, and the data below that. =20
Can anyone tell me how to get the entire 600+ fields out in a single =
export? When I try to use dts it works but complains (fails) if I try and
export more than about 240 fields. It LOOKS LIKE perhaps the length of the
= field names in the first row is confusing Excel. It is telling me I am =
exceeding the 1000 column limit (or some such)
What I really want to do is export all the columns (about 600) with the
field names in the top row, then rotate the whole shootin match. Any
assistance on any of this is greatly appreciated.
John W. Colby
www.ColbyConsulting.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Wed Sep 1 23:15:54 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Wed, 1 Sep 2004 21:15:54 -0700
Subject: [AccessD] OT: Online storage
In-Reply-To: <2F8793082E00D4119A1700B0D0216BF8031BB312@main2.marlow.com>
References: <2F8793082E00D4119A1700B0D0216BF8031BB312@main2.marlow.com>
Message-ID:
it is peculiar to me that you would upload to some online storage
place, I would suggest a cheap alternative,
ghost + external DVD writter "cheap" DVD r media.
(btw, Acronis sucks, just so you knwo not to go a 'cheap' way out)
On Mon, 30 Aug 2004 09:51:12 -0500, dwutka at marlow.com wrote:
> If you are just talking about data...what kind of space requirement are you
> talking? I have about 10 gigs free on my servers data drive, if you want to
> just store data. Of course, unless you have screaming upload speed a gig or
> two is going to take a day or two. (At 1.5 meg up, to my house, it took
> about 45 minutes to transfer a 380 meg file).
>
> Drew
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins
> Sent: Sunday, August 29, 2004 7:28 PM
> To: 'Access Developers discussion and problem solving'
> Subject: [AccessD] OT: Online storage
>
> We're moving in a few days and I don't have the facilities to back up both
> of the systems I work on -- I usually just back up from one to the other.
> Can anyone suggest an online service where I could upload both systems, just
> in case something happens during the move?
>
> Since this is so off topic, I guess you should reply off list.
>
> Also, I'll be unsubbing for a few days -- anyone needing me can reach me off
> list at ssharkins at bellsouth.net -- but it might take a few days for me to
> get back to you.
>
> Thanks everyone.
>
> Susan H.
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
-Francisco
From gustav at cactus.dk Thu Sep 2 03:10:59 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Thu, 2 Sep 2004 10:10:59 +0200
Subject: [AccessD] Determine current page number of report in preview
Message-ID: <225449706.20040902101059@cactus.dk>
Hi all (Drew?)
How do you catch the current page in preview?
Access caches pages while you are browsing forward.
Fine, but if the user moves (browses) backwards, the Page property
stays on the highest number even though the preview displays the
correct lower page number.
I guess the only chance would be to catch the current page number from
the status line of the preview window but I don't know if that is
possible.
/gustav
From gustav at cactus.dk Thu Sep 2 03:35:14 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Thu, 2 Sep 2004 10:35:14 +0200
Subject: [AccessD] Prompt after Form loads
In-Reply-To:
References:
<8444881516.20040901205336@cactus.dk>
Message-ID: <1896904147.20040902103514@cactus.dk>
Hi Francisco
> I tried the counter solution, and it fires before the form is "visible"
You are right, missed that, but here is how to do this without the
Timer:
First, create this function in the subform:
Private Function ShowAtOpen()
Static booOpened As Boolean
If booOpened = False Then
' Replace with your code.
MsgBox "Load?", vbQuestion, "Francisco"
' Run only once.
booOpened = True
End If
End Function
Now, create a textbox in the subform, make it not Visible, and bind it
like this:
=ShowAtOpen()
This will pop the code when the form and the sub have been rendered
including controls bound to the recordsource of the form. The only
limitation I can see is, that other controls bound to an expression
(=something()) may have their values retrieved after the firing of
ShowAtOpen.
/gustav
> On Wed, 1 Sep 2004 20:53:36 +0200, Gustav Brock wrote:
>> Hi Francisco
>>
>> > Agreed, I use them as a very last solution. They do CAUSE flickers,
>> > and they interrupt other process as well. Such as adverse behavoirs
>> > when using a combo bx and you find that your dropdown doesn't stay
>> > dropped, because the timer continues to fire off in the background :D
>>
>> Except in this case ... did you try the counter solution?
>> Works excellent here.
From HollisVJ at pgdp.usec.com Thu Sep 2 07:39:04 2004
From: HollisVJ at pgdp.usec.com (Hollis,Virginia)
Date: Thu, 02 Sep 2004 07:39:04 -0500
Subject: [AccessD] Required Field in Function
Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0F53BAE5@cntexchange.pgdp.usec.com>
I have a function (code below) that is used to append data from a linked
Excel file (xlsBPS). The Excel file is linked to the database as a table.
There is a column in the Excel file named AssetID - this is a required field
in the database. Yesterday when the user ran the append code the AssetID was
blank in one of the records in the xlsBPS file. This caused all the records
to move up one. For example:
Record 1: AssetID =
Description: This one
Record 2: AssetID = ABC
Description: My Name
The results after the append code ran were:
Record 1: AssetID = ABC
Description: This one
What can I add to the function to check for null fields to ensure the
AssetID is completed, if not, the code does not run? I tried adding a check
(where I added the ***** in the code, but I receive the error, RunTime 424,
Object Required.
Virginia
_____________________________________________________________________
Function AppendBPS()
'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
tblFailureTimeSelected.
Beep
Title = "Append new BPS data from Excel"
' Work Order table import.
Msg = "Your are about to modify data in this database."
Msg = Msg & " Do you want to continue?"
DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe dialog
box.
Response = MsgBox(Msg, DgDef, Title) ' Get user response.
If Response = vbYes Then ' Evaluate response
******** If IsNull(xlsBPS.AssetID) Then
*******************************
******* MsgBox "Asset ID must be completed before downloading"
******** Cancel = True
******* End If
DoCmd.SetWarnings False
DoCmd.Echo False, "Appending Data"
DoCmd.Hourglass True
'Append data to tables
DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain", acNormal, acEdit
'Open append query for tblSystemMain
DoCmd.OpenQuery "qry_AppendBPS_tblFailures", acNormal, acEdit 'Open
append query for tblFailures
DoCmd.OpenQuery "qry_AppendBPS_tblFailureTimeSelected", acNormal,
acEdit 'Open append query for tblFailureTimeSelected
DoCmd.Echo False, "Appending new data"
DoCmd.Echo True
DoCmd.Hourglass False
Beep
MsgBox "All done!"
DoCmd.SetWarnings True
DoCmd.OpenForm "frmSystemFailure", acNormal, "qryStatusPending", ,
acFormEdit, acWindowNormal
'DoCmd.Quit
Else
' You chose No or pressed Enter.
End If
End Function
From chizotz at mchsi.com Thu Sep 2 07:50:22 2004
From: chizotz at mchsi.com (Ron Allen)
Date: Thu, 2 Sep 2004 07:50:22 -0500
Subject: [AccessD] FW: photo editing
In-Reply-To: <001401c48e9e$128ffde0$80b3fea9@ColbyM6805>
References: <001401c48e9e$128ffde0$80b3fea9@ColbyM6805>
Message-ID: <657746720.20040902075022@mchsi.com>
Hello John and Janice,
Paint Shop Pro, www.jasc.com, is a great image editor that is very
reasonably priced. It does most everything that Photoshop can do at
only a fraction of the cost.
PSP can definitely save .tif files, and you can measure in inches
rather than pixels. I've done both these things in PSP myself.
HTH,
Ron
Monday, August 30, 2004, 9:31:37 AM, you wrote:
JWC> My sister in law is looking for photo editing stuff. If anyone knows of any
JWC> that fits the description in the message below my sig could you reply
JWC> directly to me off line or directly to Janice.
JWC> Thanks,
JWC> John W. Colby
JWC> www.ColbyConsulting.com
JWC> -----Original Message-----
JWC> From: JMcK110 at aol.com [mailto:JMcK110 at aol.com]
JWC> Sent: Monday, August 30, 2004 9:00 AM
JWC> To: jwcolby at colbyconsulting.com
JWC> Subject: photo editing
JWC> John:
JWC> For your type of computer, are you familiar with any non-professional
JWC> software(not Photoshop) that lets you save photos as tiffs and measure
JWC> photos in
JWC> inches rather than pixels?
JWC> Client is using Microsfot Photo Editor and having lots of trouble with it?
JWC> Don't do any research on this question. I know you're busy. I'm just
JWC> looking for off the top of your head answer.
JWC> Janice
From andy at minstersystems.co.uk Thu Sep 2 08:02:32 2004
From: andy at minstersystems.co.uk (Andy Lacey)
Date: Thu, 2 Sep 2004 14:02:32 +0100
Subject: [AccessD] Required Field in Function
Message-ID: <20040902130230.0B87724E2D7@smtp.nildram.co.uk>
Virginia
Your test may well be ok but all you're doinmg is setting Cancel=True; you
still carry on and execute the queries. The query execution needs to be on
an Else so that it does not run if the IsNull test is True. Setting
Cancel=True does not stop subsequent code.
--
Andy Lacey
http://www.minstersystems.co.uk
--------- Original Message --------
From: Access Developers discussion and problem solving
To: accessD at databaseadvisors.com
Subject: [AccessD] Required Field in Function
Date: 02/09/04 12:45
>
> I have a function (code below) that is used to append data from a linked
> Excel file (xlsBPS). The Excel file is linked to the database as a table.
> There is a column in the Excel file named AssetID - this is a required
field
> in the database. Yesterday when the user ran the append code the AssetID
was
> blank in one of the records in the xlsBPS file. This caused all the
records
> to move up one. For example:
>
>
>
> Record 1: AssetID =
>
> Description: This one
>
>
>
> Record 2: AssetID = ABC
>
> Description: My Name
>
>
>
> The results after the append code ran were:
>
>
>
> Record 1: AssetID = ABC
>
> Description: This one
>
>
>
> What can I add to the function to check for null fields to ensure the
> AssetID is completed, if not, the code does not run? I tried adding a
check
> (where I added the ***** in the code, but I receive the error, RunTime
424,
> Object Required.
>
>
>
> Virginia
>
> _____________________________________________________________________
>
> Function AppendBPS()
>
> 'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
> tblFailureTimeSelected.
>
>
>
> Beep
>
>
>
> Title = "Append new BPS data from Excel"
>
> ' Work Order table import.
>
> Msg = "Your are about to modify data in this database."
>
> Msg = Msg & " Do you want to continue?"
>
> DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe dialog
> box.
>
> Response = MsgBox(Msg, DgDef, Title) ' Get user response.
>
> If Response = vbYes Then ' Evaluate response
>
>
>
> ******** If IsNull(xlsBPS.AssetID) Then
> *******************************
>
> ******* MsgBox "Asset ID must be completed before
downloading"
>
> ******** Cancel = True
>
> ******* End If
>
>
>
> DoCmd.SetWarnings False
>
>
>
> DoCmd.Echo False, "Appending Data"
>
> DoCmd.Hourglass True
>
>
>
> 'Append data to tables
>
> DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain", acNormal,
acEdit
> 'Open append query for tblSystemMain
>
> DoCmd.OpenQuery "qry_AppendBPS_tblFailures", acNormal,
acEdit 'Open
> append query for tblFailures
>
> DoCmd.OpenQuery "qry_AppendBPS_tblFailureTimeSelected",
acNormal,
> acEdit 'Open append query for tblFailureTimeSelected
>
> DoCmd.Echo False, "Appending new data"
>
>
>
> DoCmd.Echo True
>
> DoCmd.Hourglass False
>
>
>
> Beep
>
>
>
> MsgBox "All done!"
>
> DoCmd.SetWarnings True
>
> DoCmd.OpenForm "frmSystemFailure", acNormal,
"qryStatusPending", ,
> acFormEdit, acWindowNormal
>
> 'DoCmd.Quit
>
>
>
> Else
>
> ' You chose No or pressed Enter.
>
> End If
>
>
>
> End Function
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
>
>
>
>
________________________________________________
Message sent using UebiMiau 2.7.2
From HollisVJ at pgdp.usec.com Thu Sep 2 08:28:14 2004
From: HollisVJ at pgdp.usec.com (Hollis,Virginia)
Date: Thu, 02 Sep 2004 08:28:14 -0500
Subject: [AccessD] Required Field in Function
Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0F53BAFE@cntexchange.pgdp.usec.com>
I removed the Cancel = True, added "Else" after the MsgBox, and moved the
End If to the bottom of the code. But I still receive the RunTime Error 424
Object Required on the If IsNull ... code. Am I missing something else? What
would stop the code from running and what is causing the error?
If IsNull(xlsBPS.AssetID) Then
MsgBox "Asset ID must be completed before downloading"
Else
.......
End If
End If
Virginia
________________________________________________________
Virginia
Your test may well be ok but all you're doinmg is setting Cancel=True; you
still carry on and execute the queries. The query execution needs to be on
an Else so that it does not run if the IsNull test is True. Setting
Cancel=True does not stop subsequent code.
--
Andy Lacey
http://www.minstersystems.co.uk
--------- Original Message --------
From: Access Developers discussion and problem solving
>
To: accessD at databaseadvisors.com
>
Subject: [AccessD] Required Field in Function
Date: 02/09/04 12:45
I have a function (code below) that is used to append data from a linked
Excel file (xlsBPS). The Excel file is linked to the database as a table.
There is a column in the Excel file named AssetID - this is a required
field in the database. Yesterday when the user ran the append code the
AssetID was blank in one of the records in the xlsBPS file. This caused all
the records to move up one. For example:
Record 1: AssetID =
Description: This one
Record 2: AssetID = ABC
Description: My Name
The results after the append code ran were:
Record 1: AssetID = ABC
Description: This one
What can I add to the function to check for null fields to ensure the
AssetID is completed, if not, the code does not run? I tried adding a check
(where I added the ***** in the code, but I receive the error, RunTime 424,
Object Required.
Virginia
____________________________________________________________________
Function AppendBPS()
'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
tblFailureTimeSelected.
Beep
Title = "Append new BPS data from Excel"
' Work Order table import.
Msg = "Your are about to modify data in this database."
Msg = Msg & " Do you want to continue?"
DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe dialog
box.
Response = MsgBox(Msg, DgDef, Title) ' Get user response.
If Response = vbYes Then ' Evaluate response
******** If IsNull(xlsBPS.AssetID) Then
*******************************
******* MsgBox "Asset ID must be completed before
downloading"
******** Cancel = True
******* End If
DoCmd.SetWarnings False
DoCmd.Echo False, "Appending Data"
DoCmd.Hourglass True
'Append data to tables
DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain", acNormal,
acEdit
'Open append query for tblSystemMain
DoCmd.OpenQuery "qry_AppendBPS_tblFailures", acNormal,
acEdit 'Open append query for tblFailures
DoCmd.OpenQuery
"qry_AppendBPS_tblFailureTimeSelected",acNormal, acEdit 'Open
append query for tblFailureTimeSelected
DoCmd.Echo False, "Appending new data"
DoCmd.Echo True
DoCmd.Hourglass False
Beep
MsgBox "All done!"
DoCmd.SetWarnings True
DoCmd.OpenForm "frmSystemFailure", acNormal,
"qryStatusPending", , acFormEdit, acWindowNormal
Else
' You chose No or pressed Enter.
End If
End Function
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From Erwin.Craps at ithelps.be Thu Sep 2 08:48:33 2004
From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps)
Date: Thu, 2 Sep 2004 15:48:33 +0200
Subject: [AccessD] A2K3 Import does not work
Message-ID: <46B976F2B698FF46A4FE7636509B22DF0ADB68@stekelbes.ithelps.local>
In Access 2003 to import a txt file (CSV)
File >Import > change to TXT file > select file and open
Nothing happens. I just come back to the database window.
No error, no import, no nothing!!
Same thing in A2K2 (XP) works fine....
Erwin Craps
Zaakvoerder
www.ithelps.be/jonathan
This E-mail is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a criminal
offence. Please delete if obtained in error and E-mail confirmation to
the sender.
IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg
www.ithelps.be * www.boxoffice.be
* www.stadleuven.be
IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven
IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail:
Info at ithelps.be
Box Office ** Fax: +32 16 296 406 ** Box Office E-mail:
Staff at boxoffice.be
From cyx5 at cdc.gov Thu Sep 2 09:08:41 2004
From: cyx5 at cdc.gov (Nicholson, Karen)
Date: Thu, 2 Sep 2004 10:08:41 -0400
Subject: [AccessD] Form Resizing Itself
Message-ID:
I don't think I have worked in A2K (XP). The funkiest thing is
happening. I have a frmMainSwitchboard that opens, I do a
DoCmd.Maximize in the on open event. If I click on a button to open up
another form, leaving frmMainSwitchboard open, when I return to
frmMainSwitchboard it shrinks in size to center itself on the screen. I
have all the centering stuff turned off. There is no code that touches
this form from the second code. What the? Any ideas, this should be a
simple one.
Karen Nicholson
National Laboratory
Xerox Global Services
From Jim.Hale at FleetPride.com Thu Sep 2 09:18:33 2004
From: Jim.Hale at FleetPride.com (Hale, Jim)
Date: Thu, 2 Sep 2004 09:18:33 -0500
Subject: [AccessD] Rotating Excel
Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677217FEB7@corp-es01.fleetpride.com>
For Excel 2000 the limit is:
Worksheet size 65,536 rows by 256 columns
Jim Hale
-----Original Message-----
From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca]
Sent: Wednesday, September 01, 2004 9:55 PM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] Rotating Excel
Hi John:
I believe there is a 1000 column and 65000 row limit to an excel
spreadsheet.
Jim
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby
Sent: Tuesday, August 31, 2004 6:10 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Rotating Excel
I need to export data from this big database into Excel. The objective = is
to get the FIELD NAMES out with data from about 100 records. I then = need
to rotate excel such that the field names are down the left side and the =
data for each record runs down vertically, the data for any given field runs
across horizontally. Can anyone tell me how to rotate the spreadsheet =
such that the field names are down the left side?
I assume that the export MUST go out with the field names across the top
row, and the data below that. =20
Can anyone tell me how to get the entire 600+ fields out in a single =
export? When I try to use dts it works but complains (fails) if I try and
export more than about 240 fields. It LOOKS LIKE perhaps the length of the
= field names in the first row is confusing Excel. It is telling me I am =
exceeding the 1000 column limit (or some such)
What I really want to do is export all the columns (about 600) with the
field names in the top row, then rotate the whole shootin match. Any
assistance on any of this is greatly appreciated.
John W. Colby
www.ColbyConsulting.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From michael.mattys at adelphia.net Thu Sep 2 09:33:46 2004
From: michael.mattys at adelphia.net (Michael R Mattys)
Date: Thu, 2 Sep 2004 10:33:46 -0400
Subject: [AccessD] Form Resizing Itself
References:
Message-ID: <035a01c490f9$db486df0$6401a8c0@default>
----- Original Message -----
From: "Nicholson, Karen"
To:
Sent: Thursday, September 02, 2004 10:08 AM
Subject: [AccessD] Form Resizing Itself
I don't think I have worked in A2K (XP). The funkiest thing is
happening. I have a frmMainSwitchboard that opens, I do a
DoCmd.Maximize in the on open event. If I click on a button to open up
another form, leaving frmMainSwitchboard open, when I return to
frmMainSwitchboard it shrinks in size to center itself on the screen. I
have all the centering stuff turned off. There is no code that touches
this form from the second code. What the? Any ideas, this should be a
simple one.
Karen Nicholson
National Laboratory
Xerox Global Services
--
_______________________________________________
Hi Karen,
Fancy meeting you here!
In the Events of Activate and On Got Focus
put your DoCmd.Maximize also.
----
Michael R. Mattys
Mattys MapLib for Microsoft MapPoint
http://www.mattysconsulting.com
From chizotz at mchsi.com Thu Sep 2 09:45:06 2004
From: chizotz at mchsi.com (chizotz at mchsi.com)
Date: Thu, 02 Sep 2004 14:45:06 +0000
Subject: [AccessD] Form Resizing Itself
Message-ID: <090220041445.13043.28e4@mchsi.com>
Set the border to a fixed type, that should take care of it.
> I don't think I have worked in A2K (XP). The funkiest thing is
> happening. I have a frmMainSwitchboard that opens, I do a
> DoCmd.Maximize in the on open event. If I click on a button to open up
> another form, leaving frmMainSwitchboard open, when I return to
> frmMainSwitchboard it shrinks in size to center itself on the screen. I
> have all the centering stuff turned off. There is no code that touches
> this form from the second code. What the? Any ideas, this should be a
> simple one.
>
> Karen Nicholson
> National Laboratory
> Xerox Global Services
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
From DWUTKA at marlow.com Thu Sep 2 09:45:17 2004
From: DWUTKA at marlow.com (DWUTKA at marlow.com)
Date: Thu, 2 Sep 2004 09:45:17 -0500
Subject: [AccessD] FW: photo editing
Message-ID: <2F8793082E00D4119A1700B0D0216BF8031BB326@main2.marlow.com>
All NT based machines (as far as I know) come with Imaging. It's sort of
like paint, but can save as .TIFF files. It also measures in inches (or you
can change what you units you want). Should be directly under Accessories
in the program menu.
FYI, I opened a .gif in it, but it wouldn't let me 'edit' anything until I
saved it as a TIFF (or another format).
Drew
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby
Sent: Monday, August 30, 2004 9:32 AM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] FW: photo editing
My sister in law is looking for photo editing stuff. If anyone knows of any
that fits the description in the message below my sig could you reply
directly to me off line or directly to Janice.
Thanks,
John W. Colby
www.ColbyConsulting.com
-----Original Message-----
From: JMcK110 at aol.com [mailto:JMcK110 at aol.com]
Sent: Monday, August 30, 2004 9:00 AM
To: jwcolby at colbyconsulting.com
Subject: photo editing
John:
For your type of computer, are you familiar with any non-professional
software(not Photoshop) that lets you save photos as tiffs and measure
photos in
inches rather than pixels?
Client is using Microsfot Photo Editor and having lots of trouble with it?
Don't do any research on this question. I know you're busy. I'm just
looking for off the top of your head answer.
Janice
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From Jim.Hale at FleetPride.com Thu Sep 2 10:11:27 2004
From: Jim.Hale at FleetPride.com (Hale, Jim)
Date: Thu, 2 Sep 2004 10:11:27 -0500
Subject: [AccessD] Required Field in Function
Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677217FEB8@corp-es01.fleetpride.com>
Maintaining the integrity of data Linked to Excel spreadsheets is often
problematic, since the Excel "databases" are subject to manipulation by the
user (ie. blank cells, changing column headings, inserting rows, text
instead of numbers, etc. One way I reduce these problems is by having a
hidden sheet that is linked to the data input cells/sheets. This sheet can
have a "validation" field (column) with an excel formula that tests for
conditions such as all fields being filled, no text where numbers should be,
etc. If the "record" fails the test the formula result can be whatever code
you wish. Since you can create your own specialized Excel formula these
validation routines can be quite elaborate. When you are reading these Excel
"records" into the Access database you can test for these codes and handle
the record appropriately. Just a thought.
Jim Hale
-----Original Message-----
From: Hollis,Virginia [mailto:HollisVJ at pgdp.usec.com]
Sent: Thursday, September 02, 2004 8:28 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Required Field in Function
I removed the Cancel = True, added "Else" after the MsgBox, and moved the
End If to the bottom of the code. But I still receive the RunTime Error 424
Object Required on the If IsNull ... code. Am I missing something else? What
would stop the code from running and what is causing the error?
If IsNull(xlsBPS.AssetID) Then
MsgBox "Asset ID must be completed before downloading"
Else
.......
End If
End If
Virginia
________________________________________________________
Virginia
Your test may well be ok but all you're doinmg is setting Cancel=True; you
still carry on and execute the queries. The query execution needs to be on
an Else so that it does not run if the IsNull test is True. Setting
Cancel=True does not stop subsequent code.
--
Andy Lacey
http://www.minstersystems.co.uk
--------- Original Message --------
From: Access Developers discussion and problem solving
>
To: accessD at databaseadvisors.com
>
Subject: [AccessD] Required Field in Function
Date: 02/09/04 12:45
I have a function (code below) that is used to append data from a linked
Excel file (xlsBPS). The Excel file is linked to the database as a table.
There is a column in the Excel file named AssetID - this is a required
field in the database. Yesterday when the user ran the append code the
AssetID was blank in one of the records in the xlsBPS file. This caused all
the records to move up one. For example:
Record 1: AssetID =
Description: This one
Record 2: AssetID = ABC
Description: My Name
The results after the append code ran were:
Record 1: AssetID = ABC
Description: This one
What can I add to the function to check for null fields to ensure the
AssetID is completed, if not, the code does not run? I tried adding a check
(where I added the ***** in the code, but I receive the error, RunTime 424,
Object Required.
Virginia
____________________________________________________________________
Function AppendBPS()
'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
tblFailureTimeSelected.
Beep
Title = "Append new BPS data from Excel"
' Work Order table import.
Msg = "Your are about to modify data in this database."
Msg = Msg & " Do you want to continue?"
DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe dialog
box.
Response = MsgBox(Msg, DgDef, Title) ' Get user response.
If Response = vbYes Then ' Evaluate response
******** If IsNull(xlsBPS.AssetID) Then
*******************************
******* MsgBox "Asset ID must be completed before
downloading"
******** Cancel = True
******* End If
DoCmd.SetWarnings False
DoCmd.Echo False, "Appending Data"
DoCmd.Hourglass True
'Append data to tables
DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain", acNormal,
acEdit
'Open append query for tblSystemMain
DoCmd.OpenQuery "qry_AppendBPS_tblFailures", acNormal,
acEdit 'Open append query for tblFailures
DoCmd.OpenQuery
"qry_AppendBPS_tblFailureTimeSelected",acNormal, acEdit 'Open
append query for tblFailureTimeSelected
DoCmd.Echo False, "Appending new data"
DoCmd.Echo True
DoCmd.Hourglass False
Beep
MsgBox "All done!"
DoCmd.SetWarnings True
DoCmd.OpenForm "frmSystemFailure", acNormal,
"qryStatusPending", , acFormEdit, acWindowNormal
Else
' You chose No or pressed Enter.
End If
End Function
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From Erwin.Craps at ithelps.be Thu Sep 2 10:12:08 2004
From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps)
Date: Thu, 2 Sep 2004 17:12:08 +0200
Subject: [AccessD] Reader for .MSG files.
Message-ID: <46B976F2B698FF46A4FE7636509B22DF0ADB6A@stekelbes.ithelps.local>
Does a simple reader software exist to read, exported from Outlook, .MSG
files?
To read the MSG file without having outlook.
Opening a attachement in that MSG file must also be posible.
Erwin
Erwin Craps
Zaakvoerder
www.ithelps.be/jonathan
This E-mail is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a criminal
offence. Please delete if obtained in error and E-mail confirmation to
the sender.
IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg
www.ithelps.be * www.boxoffice.be
* www.stadleuven.be
IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven
IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail:
Info at ithelps.be
Box Office ** Fax: +32 16 296 406 ** Box Office E-mail:
Staff at boxoffice.be
From cyx5 at cdc.gov Thu Sep 2 10:00:41 2004
From: cyx5 at cdc.gov (Nicholson, Karen)
Date: Thu, 2 Sep 2004 11:00:41 -0400
Subject: [AccessD] Form Resizing Itself
Message-ID:
I set the border to thin and the same thing happened. Putting the
docmd.maximize on the activate works, but I get the dreaded screen
flicker. Why does Access decide to go ahead and shrink a form size when
another form is opened? Aughghghg.
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
chizotz at mchsi.com
Sent: Thursday, September 02, 2004 10:45 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Form Resizing Itself
Set the border to a fixed type, that should take care of it.
> I don't think I have worked in A2K (XP). The funkiest thing is
> happening. I have a frmMainSwitchboard that opens, I do a
> DoCmd.Maximize in the on open event. If I click on a button to open
up
> another form, leaving frmMainSwitchboard open, when I return to
> frmMainSwitchboard it shrinks in size to center itself on the screen.
I
> have all the centering stuff turned off. There is no code that
touches
> this form from the second code. What the? Any ideas, this should be
a
> simple one.
>
> Karen Nicholson
> National Laboratory
> Xerox Global Services
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From cfoust at infostatsystems.com Thu Sep 2 10:42:16 2004
From: cfoust at infostatsystems.com (Charlotte Foust)
Date: Thu, 2 Sep 2004 08:42:16 -0700
Subject: [AccessD] Required Field in Function
Message-ID:
Have you declared xlsBPS as an Excel worksheet or is it an attached
Excel "table"? I would suspect the referencing xlsBPS.AssetID is giving
you the problem.
Charlotte Foust
-----Original Message-----
From: Hollis,Virginia [mailto:HollisVJ at pgdp.usec.com]
Sent: Thursday, September 02, 2004 6:28 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Required Field in Function
I removed the Cancel = True, added "Else" after the MsgBox, and moved
the End If to the bottom of the code. But I still receive the RunTime
Error 424 Object Required on the If IsNull ... code. Am I missing
something else? What would stop the code from running and what is
causing the error?
If IsNull(xlsBPS.AssetID) Then
MsgBox "Asset ID must be completed before downloading"
Else
.......
End If
End If
Virginia ________________________________________________________
Virginia
Your test may well be ok but all you're doinmg is setting Cancel=True;
you still carry on and execute the queries. The query execution needs to
be on an Else so that it does not run if the IsNull test is True.
Setting Cancel=True does not stop subsequent code.
--
Andy Lacey
http://www.minstersystems.co.uk
--------- Original Message --------
From: Access Developers discussion and problem solving
>
To: accessD at databaseadvisors.com
>
Subject: [AccessD] Required Field in Function
Date: 02/09/04 12:45
I have a function (code below) that is used to append data from a
linked Excel file (xlsBPS). The Excel file is linked to the database as
a table. There is a column in the Excel file named AssetID - this is a
required field in the database. Yesterday when the user ran the append
code the AssetID was blank in one of the records in the xlsBPS file.
This caused all the records to move up one. For example:
Record 1: AssetID =
Description: This one
Record 2: AssetID = ABC
Description: My Name
The results after the append code ran were:
Record 1: AssetID = ABC
Description: This one
What can I add to the function to check for null fields to ensure the
AssetID is completed, if not, the code does not run? I tried adding a
check (where I added the ***** in the code, but I receive the error,
RunTime 424, Object Required.
Virginia
____________________________________________________________________
Function AppendBPS()
'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
tblFailureTimeSelected.
Beep
Title = "Append new BPS data from Excel"
' Work Order table import.
Msg = "Your are about to modify data in this database."
Msg = Msg & " Do you want to continue?"
DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe
dialog
box.
Response = MsgBox(Msg, DgDef, Title) ' Get user response.
If Response = vbYes Then ' Evaluate response
******** If IsNull(xlsBPS.AssetID) Then
*******************************
******* MsgBox "Asset ID must be completed before
downloading"
******** Cancel = True
******* End If
DoCmd.SetWarnings False
DoCmd.Echo False, "Appending Data"
DoCmd.Hourglass True
'Append data to tables
DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain",
acNormal, acEdit 'Open append query for tblSystemMain
DoCmd.OpenQuery "qry_AppendBPS_tblFailures",
acNormal, acEdit 'Open append query for tblFailures
DoCmd.OpenQuery
"qry_AppendBPS_tblFailureTimeSelected",acNormal, acEdit 'Open
append query for tblFailureTimeSelected
DoCmd.Echo False, "Appending new data"
DoCmd.Echo True
DoCmd.Hourglass False
Beep
MsgBox "All done!"
DoCmd.SetWarnings True
DoCmd.OpenForm "frmSystemFailure", acNormal,
"qryStatusPending", , acFormEdit, acWindowNormal
Else
' You chose No or pressed Enter.
End If
End Function
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From fhtapia at gmail.com Thu Sep 2 10:46:56 2004
From: fhtapia at gmail.com (Francisco Tapia)
Date: Thu, 2 Sep 2004 08:46:56 -0700
Subject: [AccessD] JIT Forms?
In-Reply-To: <001701c48f82$95d45ea0$80b3fea9@ColbyM6805>
References: <001701c48f82$95d45ea0$80b3fea9@ColbyM6805>
Message-ID:
so the idea is to open the form up in design first add the fields? is
that right?
thanks,
On Tue, 31 Aug 2004 13:47:27 -0400, John W. Colby
wrote:
> You can do that but only in design view.
>
> John W. Colby
> www.ColbyConsulting.com
>
>
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia
> Sent: Tuesday, August 31, 2004 11:46 AM
> To: Access Developers discussion and problem solving
> Subject: [AccessD] JIT Forms?
>
> Anyone have a link, or advice on creating controls JIT?
>
> Access2000 / ADP
> I have an unbound form, that I'd like to pass a recordset to and thus be
> able to on-the-fly create controls that match the recordset... any ideas?
>
> --
> -Francisco
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
-Francisco
From HollisVJ at pgdp.usec.com Thu Sep 2 10:47:38 2004
From: HollisVJ at pgdp.usec.com (Hollis,Virginia)
Date: Thu, 02 Sep 2004 10:47:38 -0500
Subject: [AccessD] Required Field in Function
Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0F53BB39@cntexchange.pgdp.usec.com>
The strangest thing is happening.
I created a query with the linked Excel table xlsBPS and set the criteria to
show AssetID = IsNull. I added the DCount to the function and ran it.
What is strange, when I first created the query and ran the query, it showed
which record contained the Null AssetID. After running the append code, it
does not show this record - the query is blank. I don't understand why it
isn't picking up the Null AssetID record anymore. If I look on the
spreadsheet or open the linked table, that field is Null.
Since the query does not show any records containing Null AssetIDs anymore
(even though there is a null record) it runs the append code.
I also tried having the query open so the user can enter the missing data. I
found out if you enter data into the linked Excel table, it corrupts the
spreadsheet file and gives an error message about not being in a correct
file format.
-----Original Message-----
From: Nancy Lytle [mailto:nlytle at swales.com]
Sent: Thursday, September 02, 2004 9:59 AM
To: Hollis,Virginia
Subject: RE: [AccessD] Required Field in Function
I've done similiar things. Anything to control what the user can and can't
do. If the query is being run from a form and you don't want user in the
actual tables then run the IsNull query then open a form you created based
on that query, once thta have completed that you can have them close or
update the recordset and rerun the IsNull and if it returns 0 records the
run the append query.
Heres some pseudo code
If DCount("*", "qryIsNull) >0 then
Open frmDataEntry
Else
Run AppendQuery
End if
On Open of frmDataEntry
frmDataEntry.recordsourcetype = "table/query"
frmDataEntry.recordsource = "qryIsNull"
On Close frmDataEntry
Refresh the form to catch all newly entered data
If DCount("*", "qryIsNull) >0 then
"there are still items to correct"
Return them to finish entering
Else
Run AppendQuery
End if
Nancy
-----Original Message-----
From: Hollis,Virginia [mailto:HollisVJ at pgdp.usec.com]
Sent: Thursday, September 02, 2004 10:45 AM
To: Nancy Lytle
Subject: RE: [AccessD] Required Field in Function
That is fine replying directly, thanks.
That sounds like a good idea; it would show the user exactly what is wrong
too. I will try to play around with that idea. Have you ever tried it?
Va.
-----Original Message-----
From: Nancy Lytle [mailto:nlytle at swales.com]
Sent: Thursday, September 02, 2004 9:41 AM
To: HollisVJ at pgdp.usec.com
Subject: Re: [AccessD] Required Field in Function
I couldn't reply on the list so here goes:
I may be off base here but why not have an IsNotNull Criteria in the append,
then a second query to pop up a form for all those where the field is null?
Or do the reverse, have it pop up with all the null fields, require them to
be filled in before the append query can run.
----- Original Message -----
From: "Hollis,Virginia"
To:
Sent: Thursday, September 02, 2004 9:28 AM
Subject: [AccessD] Required Field in Function
> I removed the Cancel = True, added "Else" after the MsgBox, and moved the
> End If to the bottom of the code. But I still receive the RunTime Error
424
> Object Required on the If IsNull ... code. Am I missing something else?
What
> would stop the code from running and what is causing the error?
>
> If IsNull(xlsBPS.AssetID) Then
> MsgBox "Asset ID must be completed before downloading"
> Else
> .......
> End If
> End If
>
> Virginia
> ________________________________________________________
> Virginia
> Your test may well be ok but all you're doinmg is setting Cancel=True; you
> still carry on and execute the queries. The query execution needs to be on
> an Else so that it does not run if the IsNull test is True. Setting
> Cancel=True does not stop subsequent code.
>
> --
> Andy Lacey
> http://www.minstersystems.co.uk
>
>
>
> --------- Original Message --------
> From: Access Developers discussion and problem solving
> >
> To: accessD at databaseadvisors.com
> databaseadvisors.com
> >
> Subject: [AccessD] Required Field in Function
> Date: 02/09/04 12:45
>
>
> I have a function (code below) that is used to append data from a linked
> Excel file (xlsBPS). The Excel file is linked to the database as a table.
> There is a column in the Excel file named AssetID - this is a required
> field in the database. Yesterday when the user ran the append code the
> AssetID was blank in one of the records in the xlsBPS file. This caused
all
> the records to move up one. For example:
>
> Record 1: AssetID =
> Description: This one
>
> Record 2: AssetID = ABC
> Description: My Name
>
> The results after the append code ran were:
>
> Record 1: AssetID = ABC
> Description: This one
>
> What can I add to the function to check for null fields to ensure the
> AssetID is completed, if not, the code does not run? I tried adding a
check
> (where I added the ***** in the code, but I receive the error, RunTime
424,
> Object Required.
>
> Virginia
> ____________________________________________________________________
>
> Function AppendBPS()
>
> 'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
> tblFailureTimeSelected.
>
> Beep
>
> Title = "Append new BPS data from Excel"
>
> ' Work Order table import.
>
> Msg = "Your are about to modify data in this database."
> Msg = Msg & " Do you want to continue?"
> DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe dialog
> box.
>
> Response = MsgBox(Msg, DgDef, Title) ' Get user response.
> If Response = vbYes Then ' Evaluate response
>
> ******** If IsNull(xlsBPS.AssetID) Then
> *******************************
> ******* MsgBox "Asset ID must be completed before
> downloading"
> ******** Cancel = True
> ******* End If
>
> DoCmd.SetWarnings False
>
> DoCmd.Echo False, "Appending Data"
>
> DoCmd.Hourglass True
>
> 'Append data to tables
>
> DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain",
acNormal,
> acEdit
> 'Open append query for tblSystemMain
>
> DoCmd.OpenQuery "qry_AppendBPS_tblFailures", acNormal,
> acEdit 'Open append query for tblFailures
> DoCmd.OpenQuery
> "qry_AppendBPS_tblFailureTimeSelected",acNormal, acEdit 'Open
> append query for tblFailureTimeSelected
> DoCmd.Echo False, "Appending new data"
>
> DoCmd.Echo True
> DoCmd.Hourglass False
>
> Beep
>
> MsgBox "All done!"
>
> DoCmd.SetWarnings True
>
> DoCmd.OpenForm "frmSystemFailure", acNormal,
> "qryStatusPending", , acFormEdit, acWindowNormal
>
> Else
>
> ' You chose No or pressed Enter.
>
> End If
>
> End Function
>
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
>
> http://databaseadvisors.com/mailman/listinfo/accessd
>
> Website: http://www.databaseadvisors.com
>
>
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
From HollisVJ at pgdp.usec.com Thu Sep 2 10:48:35 2004
From: HollisVJ at pgdp.usec.com (Hollis,Virginia)
Date: Thu, 02 Sep 2004 10:48:35 -0500
Subject: [AccessD] Required Field in Function
Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0F53BB3A@cntexchange.pgdp.usec.com>
The xlsBPS is an attached Excel table. It is linked to the Excel
spreadsheet.
Virginia
_______________________
Have you declared xlsBPS as an Excel worksheet or is it an attached
Excel "table"? I would suspect the referencing xlsBPS.AssetID is giving
you the problem.
Charlotte Foust
From HollisVJ at pgdp.usec.com Thu Sep 2 10:49:48 2004
From: HollisVJ at pgdp.usec.com (Hollis,Virginia)
Date: Thu, 02 Sep 2004 10:49:48 -0500
Subject: [AccessD] Required Field in Function
Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0F53BB3B@cntexchange.pgdp.usec.com>
This is what I added:
If DCount("*", "qryBPSNull") > 0 Then
MsgBox "Asset ID must be entered"
Else
Append code.....
-----Original Message-----
From: Hollis,Virginia
Sent: Thursday, September 02, 2004 10:48 AM
To: 'nlytle at swales.com'; 'accessd at databaseadvisors.com'
Subject: RE: [AccessD] Required Field in Function
The strangest thing is happening.
I created a query with the linked Excel table xlsBPS and set the criteria to
show AssetID = IsNull. I added the DCount to the function and ran it.
What is strange, when I first created the query and ran the query, it showed
which record contained the Null AssetID. After running the append code, it
does not show this record - the query is blank. I don't understand why it
isn't picking up the Null AssetID record anymore. If I look on the
spreadsheet or open the linked table, that field is Null.
Since the query does not show any records containing Null AssetIDs anymore
(even though there is a null record) it runs the append code.
I also tried having the query open so the user can enter the missing data. I
found out if you enter data into the linked Excel table, it corrupts the
spreadsheet file and gives an error message about not being in a correct
file format.
-----Original Message-----
From: Nancy Lytle [mailto:nlytle at swales.com]
Sent: Thursday, September 02, 2004 9:59 AM
To: Hollis,Virginia
Subject: RE: [AccessD] Required Field in Function
I've done similiar things. Anything to control what the user can and can't
do. If the query is being run from a form and you don't want user in the
actual tables then run the IsNull query then open a form you created based
on that query, once thta have completed that you can have them close or
update the recordset and rerun the IsNull and if it returns 0 records the
run the append query.
Heres some pseudo code
If DCount("*", "qryIsNull) >0 then
Open frmDataEntry
Else
Run AppendQuery
End if
On Open of frmDataEntry
frmDataEntry.recordsourcetype = "table/query"
frmDataEntry.recordsource = "qryIsNull"
On Close frmDataEntry
Refresh the form to catch all newly entered data
If DCount("*", "qryIsNull) >0 then
"there are still items to correct"
Return them to finish entering
Else
Run AppendQuery
End if
Nancy
-----Original Message-----
From: Hollis,Virginia [mailto:HollisVJ at pgdp.usec.com]
Sent: Thursday, September 02, 2004 10:45 AM
To: Nancy Lytle
Subject: RE: [AccessD] Required Field in Function
That is fine replying directly, thanks.
That sounds like a good idea; it would show the user exactly what is wrong
too. I will try to play around with that idea. Have you ever tried it?
Va.
-----Original Message-----
From: Nancy Lytle [mailto:nlytle at swales.com]
Sent: Thursday, September 02, 2004 9:41 AM
To: HollisVJ at pgdp.usec.com
Subject: Re: [AccessD] Required Field in Function
I couldn't reply on the list so here goes:
I may be off base here but why not have an IsNotNull Criteria in the append,
then a second query to pop up a form for all those where the field is null?
Or do the reverse, have it pop up with all the null fields, require them to
be filled in before the append query can run.
----- Original Message -----
From: "Hollis,Virginia"
To:
Sent: Thursday, September 02, 2004 9:28 AM
Subject: [AccessD] Required Field in Function
> I removed the Cancel = True, added "Else" after the MsgBox, and moved the
> End If to the bottom of the code. But I still receive the RunTime Error
424
> Object Required on the If IsNull ... code. Am I missing something else?
What
> would stop the code from running and what is causing the error?
>
> If IsNull(xlsBPS.AssetID) Then
> MsgBox "Asset ID must be completed before downloading"
> Else
> .......
> End If
> End If
>
> Virginia
> ________________________________________________________
> Virginia
> Your test may well be ok but all you're doinmg is setting Cancel=True; you
> still carry on and execute the queries. The query execution needs to be on
> an Else so that it does not run if the IsNull test is True. Setting
> Cancel=True does not stop subsequent code.
>
> --
> Andy Lacey
> http://www.minstersystems.co.uk
>
>
>
> --------- Original Message --------
> From: Access Developers discussion and problem solving
> >
> To: accessD at databaseadvisors.com
> databaseadvisors.com
> >
> Subject: [AccessD] Required Field in Function
> Date: 02/09/04 12:45
>
>
> I have a function (code below) that is used to append data from a linked
> Excel file (xlsBPS). The Excel file is linked to the database as a table.
> There is a column in the Excel file named AssetID - this is a required
> field in the database. Yesterday when the user ran the append code the
> AssetID was blank in one of the records in the xlsBPS file. This caused
all
> the records to move up one. For example:
>
> Record 1: AssetID =
> Description: This one
>
> Record 2: AssetID = ABC
> Description: My Name
>
> The results after the append code ran were:
>
> Record 1: AssetID = ABC
> Description: This one
>
> What can I add to the function to check for null fields to ensure the
> AssetID is completed, if not, the code does not run? I tried adding a
check
> (where I added the ***** in the code, but I receive the error, RunTime
424,
> Object Required.
>
> Virginia
> ____________________________________________________________________
>
> Function AppendBPS()
>
> 'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
> tblFailureTimeSelected.
>
> Beep
>
> Title = "Append new BPS data from Excel"
>
> ' Work Order table import.
>
> Msg = "Your are about to modify data in this database."
> Msg = Msg & " Do you want to continue?"
> DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe dialog
> box.
>
> Response = MsgBox(Msg, DgDef, Title) ' Get user response.
> If Response = vbYes Then ' Evaluate response
>
> ******** If IsNull(xlsBPS.AssetID) Then
> *******************************
> ******* MsgBox "Asset ID must be completed before
> downloading"
> ******** Cancel = True
> ******* End If
>
> DoCmd.SetWarnings False
>
> DoCmd.Echo False, "Appending Data"
>
> DoCmd.Hourglass True
>
> 'Append data to tables
>
> DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain",
acNormal,
> acEdit
> 'Open append query for tblSystemMain
>
> DoCmd.OpenQuery "qry_AppendBPS_tblFailures", acNormal,
> acEdit 'Open append query for tblFailures
> DoCmd.OpenQuery
> "qry_AppendBPS_tblFailureTimeSelected",acNormal, acEdit 'Open
> append query for tblFailureTimeSelected
> DoCmd.Echo False, "Appending new data"
>
> DoCmd.Echo True
> DoCmd.Hourglass False
>
> Beep
>
> MsgBox "All done!"
>
> DoCmd.SetWarnings True
>
> DoCmd.OpenForm "frmSystemFailure", acNormal,
> "qryStatusPending", , acFormEdit, acWindowNormal
>
> Else
>
> ' You chose No or pressed Enter.
>
> End If
>
> End Function
>
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
>
> http://databaseadvisors.com/mailman/listinfo/accessd
>
> Website: http://www.databaseadvisors.com
>
>
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
From cfoust at infostatsystems.com Thu Sep 2 10:57:07 2004
From: cfoust at infostatsystems.com (Charlotte Foust)
Date: Thu, 2 Sep 2004 08:57:07 -0700
Subject: [AccessD] Required Field in Function
Message-ID:
Try testing for a zero length as well.
Charlotte Foust
-----Original Message-----
From: Hollis,Virginia [mailto:HollisVJ at pgdp.usec.com]
Sent: Thursday, September 02, 2004 8:48 AM
To: nlytle at swales.com; accessd at databaseadvisors.com
Subject: RE: [AccessD] Required Field in Function
The strangest thing is happening.
I created a query with the linked Excel table xlsBPS and set the
criteria to show AssetID = IsNull. I added the DCount to the function
and ran it.
What is strange, when I first created the query and ran the query, it
showed which record contained the Null AssetID. After running the append
code, it does not show this record - the query is blank. I don't
understand why it isn't picking up the Null AssetID record anymore. If I
look on the spreadsheet or open the linked table, that field is Null.
Since the query does not show any records containing Null AssetIDs
anymore (even though there is a null record) it runs the append code.
I also tried having the query open so the user can enter the missing
data. I found out if you enter data into the linked Excel table, it
corrupts the spreadsheet file and gives an error message about not being
in a correct file format.
-----Original Message-----
From: Nancy Lytle [mailto:nlytle at swales.com]
Sent: Thursday, September 02, 2004 9:59 AM
To: Hollis,Virginia
Subject: RE: [AccessD] Required Field in Function
I've done similiar things. Anything to control what the user can and
can't do. If the query is being run from a form and you don't want user
in the actual tables then run the IsNull query then open a form you
created based on that query, once thta have completed that you can have
them close or update the recordset and rerun the IsNull and if it
returns 0 records the run the append query.
Heres some pseudo code
If DCount("*", "qryIsNull) >0 then
Open frmDataEntry
Else
Run AppendQuery
End if
On Open of frmDataEntry
frmDataEntry.recordsourcetype = "table/query" frmDataEntry.recordsource
= "qryIsNull"
On Close frmDataEntry
Refresh the form to catch all newly entered data
If DCount("*", "qryIsNull) >0 then
"there are still items to correct"
Return them to finish entering
Else
Run AppendQuery
End if
Nancy
-----Original Message-----
From: Hollis,Virginia [mailto:HollisVJ at pgdp.usec.com]
Sent: Thursday, September 02, 2004 10:45 AM
To: Nancy Lytle
Subject: RE: [AccessD] Required Field in Function
That is fine replying directly, thanks.
That sounds like a good idea; it would show the user exactly what is
wrong too. I will try to play around with that idea. Have you ever tried
it?
Va.
-----Original Message-----
From: Nancy Lytle [mailto:nlytle at swales.com]
Sent: Thursday, September 02, 2004 9:41 AM
To: HollisVJ at pgdp.usec.com
Subject: Re: [AccessD] Required Field in Function
I couldn't reply on the list so here goes:
I may be off base here but why not have an IsNotNull Criteria in the
append, then a second query to pop up a form for all those where the
field is null? Or do the reverse, have it pop up with all the null
fields, require them to be filled in before the append query can run.
----- Original Message -----
From: "Hollis,Virginia"
To:
Sent: Thursday, September 02, 2004 9:28 AM
Subject: [AccessD] Required Field in Function
> I removed the Cancel = True, added "Else" after the MsgBox, and moved
> the End If to the bottom of the code. But I still receive the RunTime
> Error
424
> Object Required on the If IsNull ... code. Am I missing something
> else?
What
> would stop the code from running and what is causing the error?
>
> If IsNull(xlsBPS.AssetID) Then
> MsgBox "Asset ID must be completed before downloading" Else
> .......
> End If
> End If
>
> Virginia ________________________________________________________
> Virginia
> Your test may well be ok but all you're doinmg is setting Cancel=True;
you
> still carry on and execute the queries. The query execution needs to
be on
> an Else so that it does not run if the IsNull test is True. Setting
> Cancel=True does not stop subsequent code.
>
> --
> Andy Lacey
> http://www.minstersystems.co.uk
>
>
>
> --------- Original Message --------
> From: Access Developers discussion and problem solving databaseadvisors.com
> >
> To: accessD at databaseadvisors.com
> databaseadvisors.com
> >
> Subject: [AccessD] Required Field in Function
> Date: 02/09/04 12:45
>
>
> I have a function (code below) that is used to append data from a
> linked Excel file (xlsBPS). The Excel file is linked to the database
> as a table. There is a column in the Excel file named AssetID - this
> is a required field in the database. Yesterday when the user ran the
> append code the AssetID was blank in one of the records in the xlsBPS
> file. This caused
all
> the records to move up one. For example:
>
> Record 1: AssetID =
> Description: This one
>
> Record 2: AssetID = ABC
> Description: My Name
>
> The results after the append code ran were:
>
> Record 1: AssetID = ABC
> Description: This one
>
> What can I add to the function to check for null fields to ensure the
> AssetID is completed, if not, the code does not run? I tried adding a
check
> (where I added the ***** in the code, but I receive the error, RunTime
424,
> Object Required.
>
> Virginia
> ____________________________________________________________________
>
> Function AppendBPS()
>
> 'Appends new data from xlsBPS to tblFailure, tblSystemMain, and
> tblFailureTimeSelected.
>
> Beep
>
> Title = "Append new BPS data from Excel"
>
> ' Work Order table import.
>
> Msg = "Your are about to modify data in this database."
> Msg = Msg & " Do you want to continue?"
> DgDef = vbQuestion + vbYesNo + vbDefaultButton1 ' Describe
dialog
> box.
>
> Response = MsgBox(Msg, DgDef, Title) ' Get user response.
> If Response = vbYes Then ' Evaluate response
>
> ******** If IsNull(xlsBPS.AssetID) Then
> *******************************
> ******* MsgBox "Asset ID must be completed before
> downloading"
> ******** Cancel = True
> ******* End If
>
> DoCmd.SetWarnings False
>
> DoCmd.Echo False, "Appending Data"
>
> DoCmd.Hourglass True
>
> 'Append data to tables
>
> DoCmd.OpenQuery "qry_AppendBPS_tblSystemMain",
acNormal,
> acEdit
> 'Open append query for tblSystemMain
>
> DoCmd.OpenQuery "qry_AppendBPS_tblFailures",
> acNormal, acEdit 'Open append query for tblFailures
> DoCmd.OpenQuery
> "qry_AppendBPS_tblFailureTimeSelected",acNormal, acEdit
> 'Open append query for tblFailureTimeSelected
> DoCmd.Echo False, "Appending new data"
>
> DoCmd.Echo True
> DoCmd.Hourglass False
>
> Beep
>
> MsgBox "All done!"
>
> DoCmd.SetWarnings True
>
> DoCmd.OpenForm "frmSystemFailure", acNormal,
> "qryStatusPending", , acFormEdit, acWindowNormal
>
> Else
>
> ' You chose No or pressed Enter.
>
> End If
>
> End Function
>
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
>
> http://databaseadvisors.com/mailman/listinfo/accessd
>
> Website: http://www.databaseadvisors.com
>
>
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
From gustav at cactus.dk Thu Sep 2 10:54:01 2004
From: gustav at cactus.dk (Gustav Brock)
Date: Thu, 2 Sep 2004 17:54:01 +0200
Subject: [AccessD] Reader for .MSG files.
In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF0ADB6A@stekelbes.ithelps.local>
References: <46B976F2B698FF46A4FE7636509B22DF0ADB6A@stekelbes.ithelps.local>
Message-ID: <17233231223.20040902175401@cactus.dk>
Hi Erwin
"The Bat!" from RitLabs can import msg and eml files.
/gustav
> Does a simple reader software exist to read, exported from Outlook, .MSG
> files?
> To read the MSG file without having outlook.
> Opening a attachement in that MSG file must also be posible.
From dwaters at usinternet.com Thu Sep 2 11:05:22 2004
From: dwaters at usinternet.com (Dan Waters)
Date: Thu, 2 Sep 2004 11:05:22 -0500
Subject: [AccessD] Firefox opens two windows
In-Reply-To: <25115780.1094091514866.JavaMail.root@sniper5.usinternet.com>
Message-ID: <000d01c49106$a718fb00$de1811d8@danwaters>
Hi Francisco,
I patched version 9.2 so I would guess that 9.3 doesn't have that problem.
Dan
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia
Sent: Wednesday, September 01, 2004 9:06 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Firefox opens two windows
which version of firefox?, I'm running 9.3 and have not seen this problem.
On Wed, 1 Sep 2004 20:20:03 -0400, John W. Colby