Landing Page last updated question

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
767
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I have created a "landing page" in access that loads when the database is opened but have a question if possible.
I have a couple of buttons that run specific queries when they are pressed but want the data to appear on the "Landing Page" which I have done, but when the database is closed the dates are removed.

Is there a way I can get the dates to stay visible and not be cleared off?

thanks
Gavin
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
You have to store them in a table. No other way about it. I've done similar with something as simple as a one-field table that I can just append or update the date on (can't recall which or if I've done both).
 
Upvote 0
thanks @JonXL ,

Im fairly new to Access, but how would I amend my code in to show a title and date to the end of the code below and add it to a table called Updated
I would need this to show a name for the update ie CSV and the date/time.

Apologies as I would need to update this also on another code to align to a different name as well so it would be handy to see how you would do this.

The fields in the table are description and date.

Code:
Private Sub Command0_Click()
Dim answer As Integer
  answer = MsgBox("Have you logged onto the T Drive", vbQuestion + vbYesNo)
     If answer = vbYes Then
        Call ImportFiles
      Me.Text24 = Now()
    End If
End Sub

thanks in advance
Gavin
 
Upvote 0
I'm going to assume that one can only be logged onto one drive at a time. If true, then this database must be on the T drive, otherwise one couldn't open it? If that is the case, then what's the point of the question in the code? If the issue is about drive letters (i.e. some are on T, some are on F etc.) then that still applies but you should be using UNC drive paths in your db connections? If none of that applies feel free to ignore that.

As for the append, perhaps after End If
CurrentDb.Execute "sql statement for appending goes here", dbFailOnError
or
CurrentDb.Execute "name of append query you created goes here", dbFailOnError
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top