G
genegal
Afternoon everyone,
I'm having a problem with a database I'm making; I'm using a set of code
that is being used to dynamically update two subforms within a main form,
following the structure of:
MainForm
The code that I'm using in SubForm1 is:
Private Sub Form_Current()
If Me![ID] <> Me.SUBFORM_AGENDA_DATASHEET![ID] Then
Me!SUBFORM_AGENDA_DATASHEET.Form.Bookmark = Me.Bookmark
End If
End Sub
The code in SubForm2 is:
Private Sub Form_Click()
If Me![ID] <> Me.Parent![ID] Then
Me.Parent.Bookmark = Me.Bookmark
End If
End Sub
And I seem to have a problem, I'm given run-time error '3159': "Not a valid
bookmark". The database is made in the ACCDB format (as I constructed it in
Access 2007). But when I sent it to a friend to have a look, I converted the
database to a 2003 format (MDB file). Surprisingly, he didn't have any
problems with operating the mainform and subforms. But when I opened the same
MDB file in my Access, I still arrived at the same error '3159'.
I asked him if he had changed anything to the format of the database, and he
said no, it still retains the original integrity when I sent him the database.
So I'm inclined to think the following:
Either a) my version of Database has something corrupt in VBA, or b) there
is a general problem with Access 2007 in operating this code.
The link to the database can be found here:
http://forums.techguy.org/software-...ccess-automatically-determine-value-2.html#29 (MDB format)
http://forums.techguy.org/software-...ccess-automatically-determine-value-3.html#32 (ACCDB format)
So could I please ask if there's someone who would be willing to check this
for me? I know that the MDB version works in 2003 Access, but I want to know
if the MDB and/or the ACCDB works in Access 2007. Like I said, I'm not sure
if this could be a generic bug in Access 2007, or whether there's something
specifically wrong with my installation.
Thank you very much for your time.
I'm having a problem with a database I'm making; I'm using a set of code
that is being used to dynamically update two subforms within a main form,
following the structure of:
MainForm
SubForm1
The code that I'm using in SubForm1 is:
Private Sub Form_Current()
If Me![ID] <> Me.SUBFORM_AGENDA_DATASHEET![ID] Then
Me!SUBFORM_AGENDA_DATASHEET.Form.Bookmark = Me.Bookmark
End If
End Sub
The code in SubForm2 is:
Private Sub Form_Click()
If Me![ID] <> Me.Parent![ID] Then
Me.Parent.Bookmark = Me.Bookmark
End If
End Sub
And I seem to have a problem, I'm given run-time error '3159': "Not a valid
bookmark". The database is made in the ACCDB format (as I constructed it in
Access 2007). But when I sent it to a friend to have a look, I converted the
database to a 2003 format (MDB file). Surprisingly, he didn't have any
problems with operating the mainform and subforms. But when I opened the same
MDB file in my Access, I still arrived at the same error '3159'.
I asked him if he had changed anything to the format of the database, and he
said no, it still retains the original integrity when I sent him the database.
So I'm inclined to think the following:
Either a) my version of Database has something corrupt in VBA, or b) there
is a general problem with Access 2007 in operating this code.
The link to the database can be found here:
http://forums.techguy.org/software-...ccess-automatically-determine-value-2.html#29 (MDB format)
http://forums.techguy.org/software-...ccess-automatically-determine-value-3.html#32 (ACCDB format)
So could I please ask if there's someone who would be willing to check this
for me? I know that the MDB version works in 2003 Access, but I want to know
if the MDB and/or the ACCDB works in Access 2007. Like I said, I'm not sure
if this could be a generic bug in Access 2007, or whether there's something
specifically wrong with my installation.
Thank you very much for your time.