A
Alp Bekisoglu
Hi Experts,
I have the following code that refuses to work.
Dim DB As DAO.Database
Set DB = OpenDatabase(filename)
prpB = Chr(91) & Me.prp & Chr(93)
Me.rval = DB.Properties!prpB
DB.Close
Set DB = Nothing
Me.prp is a ComboBox based on a query that lists valid property names, i.e.
AppIcon, AppTitle, etc.
prpB always returns "[somePropertyName]" which I think is correct. When code
goes to the next line, I get "Run-time Error 3270 Property not found". I do
know that refered property IS there.
It looks like some how Me.rval is ending up like Me.rval =
DB.Properties!"[AppIcon]" and thus ending up in error.
What am I doing wrong?
How can I bind the [xxxx] part to a variable?
Thanks in advance.
Alp
I have the following code that refuses to work.
Dim DB As DAO.Database
Set DB = OpenDatabase(filename)
prpB = Chr(91) & Me.prp & Chr(93)
Me.rval = DB.Properties!prpB
DB.Close
Set DB = Nothing
Me.prp is a ComboBox based on a query that lists valid property names, i.e.
AppIcon, AppTitle, etc.
prpB always returns "[somePropertyName]" which I think is correct. When code
goes to the next line, I get "Run-time Error 3270 Property not found". I do
know that refered property IS there.
It looks like some how Me.rval is ending up like Me.rval =
DB.Properties!"[AppIcon]" and thus ending up in error.
What am I doing wrong?
How can I bind the [xxxx] part to a variable?
Thanks in advance.
Alp