Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / February 2007

Tip: Looking for answers? Try searching our database.

Very Perculiar Form Behaviour

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Roberts - 27 Feb 2007 18:55 GMT
I have a split database which I have put together locally (i.e. both front
and back end reside in the same directory on the same PC).

Now I've finished it I want to transfer the front and back ends to another
PC.  How to do this is simple enough but something strange seems to happen.

I have a main form which opens when the front end is activated and within
the form header are two unbound Txt fields - one to display the current date
(called TheDate) and one the current time (called TheTime).  They are both
set to "activate" on the OnTimer event of the form with a Timer interval of
60000.

The code behind the event is:-

Private Sub Form_Timer()
   Me.TheTime = Now()
   Me.TheDate = Date
End Sub

This works fine on my laptop, but when I copy the front and back end files
to another PC the time works fine but TheDate displays #Name????  I havent
changed anything except relinking the front end to the back end using the
Linked Table Manager.

I don't understand the problem?

Can anyone shed any light on this.

Andy
Michel Walsh - 28 Feb 2007 21:13 GMT
You may have a missing reference, which is detected when the call to Now()
is made, and thus the error.

Note that Now() have also the date in addition to the time.

Vanderghast, Access MVP

>I have a split database which I have put together locally (i.e. both front
>and back end reside in the same directory on the same PC).
[quoted text clipped - 26 lines]
>
> Andy
John W. Vinson - 28 Feb 2007 22:03 GMT
>This works fine on my laptop, but when I copy the front and back end files
>to another PC the time works fine but TheDate displays #Name????  I havent
>changed anything except relinking the front end to the back end using the
>Linked Table Manager.

This appears to be the very common References bug.  Open any
module in design view, or open the VBA editor by typing
Ctrl-G. Select Tools... References from the menu. One of the
.DLL files required by Access will probably be marked
MISSING. Uncheck it, recheck it, close and open Access.

If none are MISSING, check any reference; close and open
Access; then uncheck it again. This will force Access to
relink the libraries.

            John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.