I have been working on an App in VB.NET that will display object and data from any ACCDB file. It is working pretty well so far. Let me know what you all think. I look forward to your feedback.
The screenshot below shows the Tables from a selected database, More screenshots can be seen on GitHub.
Kevin RobertsonOP
@Reply 13 months ago
Kevin RobertsonOP
@Reply 13 months ago
I am currently working on a 'Recent Databases' list showing a list of recently opened databases. When the database is opened the details are save to an Access database. The data is retrieved and a List View control is populated from a Query in the database (sorted by LastOpened DESC). Next will be to UPDATE the LastOpened field if the record exists (I added the ID to the List View which will be hidden later).
I also added a button to open a selected Form directly in Access (it opens Access, then immediately opens the correct Form). Going to do the same with Reports eventually.
Kevin RobertsonOP
@Reply 13 months ago
The Last Opened column now updates with the current date and time.
The database was slowing down my start up form when loading. Now been speeded up.
Partial code:
If Me.InvokeRequired Then
Me.Invoke(Sub()
LvwRecentDatabases.Items.Clear()
LvwRecentDatabases.Items.AddRange(items.ToArray())
End Sub)
Else
LvwRecentDatabases.Items.Clear()
LvwRecentDatabases.Items.AddRange(items.ToArray())
End If
I also added this event:
Private Async Sub FrmMainMenu_Shown(sender As Object, e As EventArgs) Handles Me.Shown
Await Task.Run(Sub() LoadRecentDatabases())
End Sub
My start up form now loads almost immediately. Happy days!
Planning on adding a Context Menu to the List View control.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.