ADP & MDB Diferences

S

scott

I recently created my first ADP application and I'm converting my old MDB
forms, reports so they can run in my ADP project.

In my MDB app, I used the below code on the "Form Open" event to change the
title bar, but I get an error when I try to run it in my ADP project saying
"Sub or Function not defined".

I have the same reference libraries loaded, what am I doing wrong?


CODE **************

Me.Caption = CurrentDb().Properties("AppTitle") & ": " & PrintDay(Date)
 
D

Dirk Goldgar

scott said:
I recently created my first ADP application and I'm converting my old
MDB forms, reports so they can run in my ADP project.

In my MDB app, I used the below code on the "Form Open" event to
change the title bar, but I get an error when I try to run it in my
ADP project saying "Sub or Function not defined".

I have the same reference libraries loaded, what am I doing wrong?


CODE **************

Me.Caption = CurrentDb().Properties("AppTitle") & ": " &
PrintDay(Date)

CurrentDb refers to the current Jet database. In an ADP, there is no
such database. For your purposes, you should change to

Me.Caption = CurrentProject.Properties("AppTitle") & ": " &
PrintDay(Date)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top