microsoft.public.access.modulescoding
  Home FAQ Contact Sign in
microsoft.public.access.modulescoding only
 
Advanced search
June 2010
mo tu we th fr sa su w
 123456 22
78910111213 23
14151617181920 24
21222324252627 25
282930     26
2010
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2010 2008 2007 2006
total
microsoft ... modulescoding Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: Reminder - Microsoft Responds to the Evolution of Community         


Author: Douglas J. Steele
Date: Jun 1, 2010 12:22

Try using http://groups.google.com/

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"Stewart Berman" wrote in message
news:n6i806lb44qc2t2qqu4s9ab3em5rlq5n3k@4ax.com...
> It would be nice if Microsoft continued to make the newsgroups on this
> server available...
Show full article (3.98Kb)
no comments
  Copy a newer MDB over itself         


Author: Jordan
Date: May 13, 2010 20:22

I have an Access 2003 MDB front end that I need to keep up to date. When it
was a lot smaller it was not that big a deal to just put in the login script
a line to copy down the current rev every day, but now that it is bigger I
need a better way of keeping the file up to date and only copying the new
MDB down when the one on the network share is newer.

I know I can have the startup code check a CurrentRev variable in the MDB
vs. a value in the backend table and identify that a new rev is available to
be copied, but don't know if it is possible to have the MDB copy over
itself. Is this possible?
5 Comments
  Re: Check if add-in is installed         


Author: Tom van Stiphout
Date: Jan 29, 2010 06:57

On Thu, 28 Jan 2010 10:49:08 -0500, "Sha S" live.com> wrote:

The reason I suggested the Registry is that it is mostly independent
of file location. What if I installed Windows on the D-drive, and
Program Files is also on the D-drive?

-Tom.
Microsoft Access MVP
>Thank you, Tom. Your suggestion got me started.
>
>If I list COMAddins.Description, the Save As PDF addin doesn't show.
>However, I found a pointer in another newsgroup: the existence of this
>file...
Show full article (1.44Kb)
no comments
  Re: Compact Database from External Database 2007         


Author: Ross
Date: Jan 28, 2010 19:43

This code Works for 2007

'***************************
Public Sub CompactExtClosedDB()
'***************************
Dim strDbNameOld As String
Dim strDBNameNew As String

strDbNameOld = "C:\Documents and Settings\rcri007\My
Documents\A_Pricing_Combine\CompactDB1.accdb"
strDBNameNew = "C:\Documents and Settings\rcri007\My
Documents\A_Pricing_Combine\Ross.accdb"

DBEngine.CompactDatabase strDbNameOld, strDBNameNew
Kill strDbNameOld
Name strDBNameNew As strDbNameOld

End Sub

"Douglas J. Steele" wrote:
> The On Close option wouldn't do you any good anyhow: it only applies to the
> front-end database.
>
> Use the CompactDatabase method of the DBEngine object.
> http://msdn.microsoft.com/en-us/library/bb220986...
Show full article (1.77Kb)
1 Comment
  A2K Runtime Crashes on DoCmd.Quit         


Author: Andy
Date: Dec 24, 2008 21:50

Hi;

Using A2K Runtime on XP Pro PC. Have all of the updates for XP and Access
Runtime including SP-3 for both.

The app opens to frmLogin correctly. On that form there are 2 cmd buttons.
Continue & Exit.

Can log in as USER or sa, (System Administrator) but when clicking either
cmd button get Access Runtime Crash.

"Execution of this application has stopped due to a run-time error."
"The application can't continue and will be shut down."
Only has OK button.

The cmdExit OnClick Event is:
Private Sub cmdExit_Click()
DoCmd.Quit
End Sub

Don't understand why would get a run-time error on DoCmd.Quit.

The MDB does work correctly on the machine that created it. Even opening it
as the User in Runtime Version emulation.
Show full article (1.57Kb)
1 Comment
  Running a Function Once On Startup         


Author: Jeff G
Date: Sep 22, 2008 19:22

Hello -

Could someone tell me if this is possible...

I have created an update for my front end. As part of the new deployment, I
need to create a new system DSN on the end user's machine. I have a macro
on a form that will create the DSN if the user doesn't have it, but I'd like
to have it created automatically, i.e. like in an Autoexec macro. But...I
don't want to run it everytime they launch it, only the first time.

Any help would be appreciated.

Jeff G
3 Comments
  Shell not working         


Author: TedT
Date: Sep 21, 2008 05:57

I have a Shell command in a VB Function, but everytime it is called, I get an
"error #5", "Invalid procedure call or argument".

I have tried:
Shell Filename$,1
RetVal = Shell(Filename$, 1)
Call Shell(FileName$, 1)

FileName$ is read from a form field when a button is pressed, and then a
Macro is called that then runCode the VB Function. FileName$ is a string
like "C:\users\Ted\File.txt" This appears to work because, as a test, I can
read the FileName$ string in a MsgBox just before the Shell function.

This Access 2003. This seems like a trival issue, but I can't seem to find
the problem.

Thanks
Ted
5 Comments
  Creating a Lookup table with Incomplete Data         


Author: Tony Parker
Date: Sep 19, 2008 04:20

Hi Folks, I am trying to create a lookup table with an incomplete table. A
sample of the data is as follows:

ID Field1 Field2 Field4
2195 TOTAL SCH RC-26.B.
2193 107 B6511000010200
2192 107 B6461000020200
2191 108 B6460000020205
2171 TOTAL SCH RC-26.A.
2158 986 B6000000010375
2153 986 B6000000010235
2152 108 B6000000010230
2148 TOTAL SCH RC-25
2147 981 B5408000020000
2146 986 B5400000020200
2142 TOTAL SCH RC-24
2140 975 B5200000010200
Show full article (1.75Kb)
1 Comment
  Do I need class or function?         


Author: jeff
Date: Sep 19, 2008 03:27

Hi All

Every time I use an Option Group I like to write some code to bold the
label of the selected Option in the group - I used to put this code in
the Event now I create a sub so that I can reuse the code within the
form. The problem is every time I use an Option Group I have to re-
write this code - I want to know if there is a way to do this better
- I am thinking of something like a class module or a function but I
am not sure where to begin

I was hoping to create something where I would be able to go
FontBold(OptionGroupSelectedNumber, Label1name, Label2name,
Label3name, Label4name) -

Any thoughts on how to get me started on this - or even if what I am
asking is doable?

Thanks in advance for your assistance with this

Jeff

My code that I am using currently looks something like this:
Show full article (1.58Kb)
4 Comments
  mailing daily report with schedule         


Author: Gavaruus
Date: Sep 18, 2008 18:30

Hi all,

my task is to create a report as pdf that is automatically mailed
every day to several people.
So the following steps are necessary:

1) Create a scheduled task in the control panel that calls... --->
OK

2) a .bat file with a line like this: "C:\Program Files\Microsoft
Office\Office12\msaccess.exe" mydb.mdb /X SendDailyReport --->
OK

3) The macro SendDailyReport calls with the Action RunCode a Sub in a
form that is opened on startup ---> failed, because I am not so
familiar with VBA. How does the syntax look like to call a sub from a
specific form?

4) Running some queries and code. ---> partly failed
Problems with this code:
timeAndDay = timeTo + dayReport
Show full article (1.63Kb)
1 Comment
1 2 3 4 5 6 7 8 9