Skip to content

Instantly share code, notes, and snippets.

@el3um4s
Created October 27, 2022 14:12
Show Gist options
  • Save el3um4s/a26fabfdcdb6697bb7b6c4ce9239eaef to your computer and use it in GitHub Desktop.
Save el3um4s/a26fabfdcdb6697bb7b6c4ce9239eaef to your computer and use it in GitHub Desktop.
MEDIUM - How To Link Forms in Access - 01
Public Function getNameCurrentDB()
Dim db As DAO.Database
Set db = CurrentDb()
Dim name As String
name = db.name
Set db = Nothing
getNameCurrentDB = name
End Function
Public Function getNameFormDB()
Dim db As DAO.Database
Set db = CodeDb()
Dim name As String
name = db.name
Set db = Nothing
getNameFormDB = name
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment