473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Object variable or Width block variable not set error

I get the following error:
"Object variable or Width block variable not set error"

trying to run this in my Access2000 .ADP database:
CurrentDb.Properties.Append
CurrentDb.CreateProperty(myPropertyName, dbLong, myValue)

Any ideas why and how to fix would be appreciated.
lq
Nov 12 '05 #1
8 8854
SA
Lauren:

In an ADP database, even if you try to reference CurrentDB it will not
create an appropriate refernce to the ADP database container so you can not
create database properties in an ADP in that manner.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Lauren Quantrell" <la*************@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
I get the following error:
"Object variable or Width block variable not set error"

trying to run this in my Access2000 .ADP database:
CurrentDb.Properties.Append
CurrentDb.CreateProperty(myPropertyName, dbLong, myValue)

Any ideas why and how to fix would be appreciated.
lq

Nov 12 '05 #2
Lauren,

What are you trying to do?

--
James Lankford
"SA" <~f***********@nspm.com> wrote in message
news:bn**********@ngspool-d02.news.aol.com...
Lauren:

In an ADP database, even if you try to reference CurrentDB it will not
create an appropriate refernce to the ADP database container so you can not create database properties in an ADP in that manner.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Lauren Quantrell" <la*************@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
I get the following error:
"Object variable or Width block variable not set error"

trying to run this in my Access2000 .ADP database:
CurrentDb.Properties.Append
CurrentDb.CreateProperty(myPropertyName, dbLong, myValue)

Any ideas why and how to fix would be appreciated.
lq


Nov 12 '05 #3
James,
I'm trying to create some custom properties in my Access2000 .ADP
database to handle stored information such as CurrentUserID,
CurrentMachineName, etc. Certainly this must be available in an
..adp??? In the past (.mdb), this was done using the code below:

CurrentDb.Properties.AppendCurrentDb.CreatePropert y(myPropertyName,
dbLong, myValue)

In Access2000 .adp I get the following error:
"Object variable or With block variable not set error"

Thanks,
lq


"James Lankford" <dragonzfang@_nospam_.hotmail.com> wrote in message news:<vq************@corp.supernews.com>...
Lauren,

What are you trying to do?

--
James Lankford
"SA" <~f***********@nspm.com> wrote in message
news:bn**********@ngspool-d02.news.aol.com...
Lauren:

In an ADP database, even if you try to reference CurrentDB it will not
create an appropriate refernce to the ADP database container so you can

not
create database properties in an ADP in that manner.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Lauren Quantrell" <la*************@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
I get the following error:
"Object variable or Width block variable not set error"

trying to run this in my Access2000 .ADP database:
CurrentDb.Properties.Append
CurrentDb.CreateProperty(myPropertyName, dbLong, myValue)

Any ideas why and how to fix would be appreciated.
lq


Nov 12 '05 #4
James,
I'm trying to create some custom properties in my Access2000 .ADP
database to handle stored information such as CurrentUserID,
CurrentMachineName, etc. Certainly this must be available in an
..adp??? In the past (.mdb), this was done using the code below:

CurrentDb.Properties.AppendCurrentDb.CreatePropert y(myPropertyName,
dbLong, myValue)

In Access2000 .adp I get the following error:
"Object variable or With block variable not set error"

Thanks,
lq

"James Lankford" <dragonzfang@_nospam_.hotmail.com> wrote in message news:<vq************@corp.supernews.com>...
Lauren,

What are you trying to do?

--
James Lankford
"SA" <~f***********@nspm.com> wrote in message
news:bn**********@ngspool-d02.news.aol.com...
Lauren:

In an ADP database, even if you try to reference CurrentDB it will not
create an appropriate refernce to the ADP database container so you can

not
create database properties in an ADP in that manner.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Lauren Quantrell" <la*************@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
I get the following error:
"Object variable or Width block variable not set error"

trying to run this in my Access2000 .ADP database:
CurrentDb.Properties.Append
CurrentDb.CreateProperty(myPropertyName, dbLong, myValue)

Any ideas why and how to fix would be appreciated.
lq


Nov 12 '05 #5
Steve,
There must be a way to do this in .ADP?
lq
"SA" <~f***********@nspm.com> wrote in message news:<bn**********@ngspool-d02.news.aol.com>...
Lauren:

In an ADP database, even if you try to reference CurrentDB it will not
create an appropriate refernce to the ADP database container so you can not
create database properties in an ADP in that manner.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Lauren Quantrell" <la*************@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
I get the following error:
"Object variable or Width block variable not set error"

trying to run this in my Access2000 .ADP database:
CurrentDb.Properties.Append
CurrentDb.CreateProperty(myPropertyName, dbLong, myValue)

Any ideas why and how to fix would be appreciated.
lq

Nov 12 '05 #6
rkc

"Lauren Quantrell" <la*************@hotmail.com> wrote in message
news:47*************************@posting.google.co m...
Steve,
There must be a way to do this in .ADP?


You can add properties to the CurrentProject.Properties collection
using CurrentProject.Properties.Add

With CurrentProject.Properties
.Add "CurrentMachineName", "Commodore 64"
End With
Nov 12 '05 #7
Thanks,
That does the trick. But now, how do I make the value persistent
between client sessions? (so that if a user sets the value, then
exists Access, the value is retained the next time the ADP project is
run...)
lq
"rkc" <rk*@yabba.dabba.do.rochester.rr.bomb> wrote in message news:<gO*******************@twister.nyroc.rr.com>. ..
"Lauren Quantrell" <la*************@hotmail.com> wrote in message
news:47*************************@posting.google.co m...
Steve,
There must be a way to do this in .ADP?


You can add properties to the CurrentProject.Properties collection
using CurrentProject.Properties.Add

With CurrentProject.Properties
.Add "CurrentMachineName", "Commodore 64"
End With

Nov 12 '05 #8
la*************@hotmail.com (Lauren Quantrell) wrote in message news:<47**************************@posting.google. com>...
Thanks,
That does the trick. But now, how do I make the value persistent
between client sessions? (so that if a user sets the value, then
exists Access, the value is retained the next time the ADP project is
run...)
lq

Function GetProperty(ByVal strProperty As String)
GetProperty = CurrentProject.Properties(strProperty)
End Function
Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
1
by: JMCN | last post by:
hello- i received an runtime error message: You tried to call Update or CancelUpdate or attempted to update a Field in a recordset without first calling AddNew or Edit. (Error 3020). when i look...
6
by: Neo Geshel | last post by:
I am trying to deal with an image in code-behind. I consistently get the following error: Server Error in '/' Application. Object variable or With block variable not set. Description: An...
44
by: petermichaux | last post by:
Hi, I have been using the following line of code to create an object called "Serious" if it doesn't already exist. if (Serious == null) {var Serious = {};} This works in the scripts I use...
3
by: Richard Hollenbeck | last post by:
I've marked the line in this subroutine where I've been getting this error. It may be something stupid but I've been staring at this error trying to fix it for over an hour. I'm pretty sure the...
1
by: MarkAllison | last post by:
Hi, can anyone help me before I slit my wrists?!?! I am trying to create a procedure in an Access 97 database, that basically creates a new record in a table called "Discrepancies", with an ID...
3
by: Newbie19 | last post by:
I'm trying to get a list of all subfolders in a folder on a share drive, but I keep on getting this error message: Object variable or With block variable not set. Description: An unhandled...
1
by: finizaini | last post by:
I'm receiving an "Object Expected" Error (Line:309, Char:0). I'm confused as to what is happening.Also, I can't run this code using other browser such as Fire Fox. Thispage only can view using IE....
2
by: bips2008 | last post by:
The code seems to work fine in other browser but in IE it throws this error. This is very urgent for me and any help would be greatly appreciated For your convienence i have posted the code for the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.