473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBA reference problem

Gox
Hi,
I got a problem with VBE6.DLL (VBA reference)
On my machine everything work well.(access 2k, vesion dll 6.0.84.35)
First machine NO PROBLEM (access 2003, vesion dll 6.4.99.72)
Second machine problem (access xp, vesion dll 6.4.99.69)

I used pivot query and function Format([FIELD_NAME], "mmm") for Column
Heading

This is error:
Error No. 3075 Function is not available in expression in query
expression 'Format([PERIOD],"mmm")'

Function Format is part of VBA reference, and I think this dll
(VBE6.DLL) is problem.

Similar problem I got with CDate function.

Any hint??
Mar 8 '06 #1
8 9142
Disable Sandbox mode:
http://support.microsoft.com/kb/239482/en-us

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gox" <go*************@gmail.com> wrote in message
news:du**********@ss405.t-com.hr...
Hi,
I got a problem with VBE6.DLL (VBA reference)
On my machine everything work well.(access 2k, vesion dll 6.0.84.35)
First machine NO PROBLEM (access 2003, vesion dll 6.4.99.72)
Second machine problem (access xp, vesion dll 6.4.99.69)

I used pivot query and function Format([FIELD_NAME], "mmm") for Column
Heading

This is error:
Error No. 3075 Function is not available in expression in query expression
'Format([PERIOD],"mmm")'

Function Format is part of VBA reference, and I think this dll (VBE6.DLL)
is problem.

Similar problem I got with CDate function.

Any hint??

Mar 8 '06 #2
Gox
Allen, thanks for reply.

How determine which SP for office I have?
Allen Browne wrote:
Disable Sandbox mode:
http://support.microsoft.com/kb/239482/en-us

Mar 8 '06 #3
Help | About lets you know your Office service pack.

To know your JET 4 service, pack, locate msjet40.dll (typically in
windows\system32), right-click and choose Properties. On the Version tab,
you should see:
4.0.8xxx.0
The xxx digits don't matter, but if you don't see at least the 8, you need
to download the JET 4 SP8 service pack from:
http://support.microsoft.com/kb/239114

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gox" <go*************@gmail.com> wrote in message
news:du**********@ss405.t-com.hr...
Allen, thanks for reply.

How determine which SP for office I have?
Allen Browne wrote:
Disable Sandbox mode:
http://support.microsoft.com/kb/239482/en-us

Mar 8 '06 #4
Gox
Allen Browne wrote:
Help | About lets you know your Office service pack.

To know your JET 4 service, pack, locate msjet40.dll (typically in
windows\system32), right-click and choose Properties. On the Version tab,
you should see:
4.0.8xxx.0
The xxx digits don't matter, but if you don't see at least the 8, you need
to download the JET 4 SP8 service pack from:
http://support.microsoft.com/kb/239114


My version is 4.0.8618.0 and others clients too.
Still I have not a solution of my problem.

Any others suggestions?
Mar 23 '06 #5
Let's try re-registering the VBA library.

On the machine that is playing up, open the Immediate Window (Ctrl+G), and
enter:
? References("VBA").FullPath

It should return the path such as:
C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL

Close Access.
Open a command prompt.
Unregister the library. Use your actual path, but it will be something like
this:
regsvr32 /u "C:\Program Files\Common Files\Microsoft
Shared\VBA\VBA6\VBE6.DLL"

Then re-register the library again:
regsvr32 "C:\Program Files\Common Files\Microsoft
Shared\VBA\VBA6\VBE6.DLL"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gox" <go*************@gmail.com> wrote in message
news:dv**********@ss405.t-com.hr...
Allen Browne wrote:
Help | About lets you know your Office service pack.

To know your JET 4 service, pack, locate msjet40.dll (typically in
windows\system32), right-click and choose Properties. On the Version tab,
you should see:
4.0.8xxx.0
The xxx digits don't matter, but if you don't see at least the 8, you
need to download the JET 4 SP8 service pack from:
http://support.microsoft.com/kb/239114


My version is 4.0.8618.0 and others clients too.
Still I have not a solution of my problem.

Any others suggestions?

Mar 23 '06 #6
Gox
Allen Browne wrote:
Let's try re-registering the VBA library.

Allen sorry, but no result. Same error, same problem.

And another problem with dynamic query.
First of all, I run my function queryIsExist(MyQueryName) /true-false
and if query exist delete query and create new query with same name and
different sql statement.
If not exist then skip deleting query.

Function queryIsExist(MyQueryName As String) As Boolean
'
' Determines if a Query is exist.
'
Dim db As DAO.Database, dcm As Document, dcms As Documents
Set db = CurrentDb
Set dcms = db.Containers!Tables.Documents

queryIsExist = False
For Each dcm In dcms
If dcm.Name = MyQueryName Then
queryIsExist = True
Exit Function ' Quit function once form has been found.
End If
Next
End Function

This is dynamic part:

If queryIsExist(MyQueryName) Then
db.QueryDefs.Delete MyQueryName
End If
Set qdf = db.CreateQueryDef(MyQueryName, strSQL)
Line: db.QueryDefs.Delete MyQueryName
don't work, because I got a error: 3012. Object <name> already exists.
on line below: Set qdf = db.CreateQueryDef(MyQueryName, strSQL)

Trying to create a object, before deleting existing object.

This not work on XP machine, 2003 access.
Any hint?

Mar 24 '06 #7
Sorry, the symptoms don't make sense to me.

Perhaps someone else has a suggestion to contribute.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gox" <go*************@gmail.com> wrote in message
news:e0**********@ss405.t-com.hr...
Allen Browne wrote:
Let's try re-registering the VBA library.

Allen sorry, but no result. Same error, same problem.

And another problem with dynamic query.
First of all, I run my function queryIsExist(MyQueryName) /true-false
and if query exist delete query and create new query with same name and
different sql statement.
If not exist then skip deleting query.

Function queryIsExist(MyQueryName As String) As Boolean
'
' Determines if a Query is exist.
'
Dim db As DAO.Database, dcm As Document, dcms As Documents
Set db = CurrentDb
Set dcms = db.Containers!Tables.Documents

queryIsExist = False
For Each dcm In dcms
If dcm.Name = MyQueryName Then
queryIsExist = True
Exit Function ' Quit function once form has been found.
End If
Next
End Function

This is dynamic part:

If queryIsExist(MyQueryName) Then
db.QueryDefs.Delete MyQueryName
End If
Set qdf = db.CreateQueryDef(MyQueryName, strSQL)
Line: db.QueryDefs.Delete MyQueryName
don't work, because I got a error: 3012. Object <name> already exists.
on line below: Set qdf = db.CreateQueryDef(MyQueryName, strSQL)

Trying to create a object, before deleting existing object.

This not work on XP machine, 2003 access.
Any hint?

Mar 24 '06 #8
Gox schreef:
If queryIsExist(MyQueryName) Then
db.QueryDefs.Delete MyQueryName
End If
Set qdf = db.CreateQueryDef(MyQueryName, strSQL)
Line: db.QueryDefs.Delete MyQueryName
don't work, because I got a error: 3012. Object <name> already exists.
on line below: Set qdf = db.CreateQueryDef(MyQueryName, strSQL)

Trying to create a object, before deleting existing object.

This not work on XP machine, 2003 access.
Any hint?


Try querydefs.refresh before (re)creating the query.

--
Paul
Mar 24 '06 #9

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

Similar topics

2
10520
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
6
5601
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
2
2565
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
2
3035
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
3
4385
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
5
49763
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
27
4187
by: David W | last post by:
I'm almost tearing my hair out. A colleague claimed that a null reference can exist, like this: void f( int& p ) { printf( "%d\n", p ); } int main (int argc, char *argv) {
8
2383
by: toton | last post by:
HI, One more small doubt from today's mail. I have certain function which returns a pointer (sometimes a const pointer from a const member function). And certain member function needs reference...
2
2817
by: toton | last post by:
Hi, This is continuation of topic pointer & reference doubt. http://groups.google.com/group/comp.lang.c++/browse_thread/thread/df84ce6b9af561f9/76304d7d77f6ccca?lnk=raot#76304d7d77f6ccca But I...
29
3622
by: shuisheng | last post by:
Dear All, The problem of choosing pointer or reference is always confusing me. Would you please give me some suggestion on it. I appreciate your kind help. For example, I'd like to convert a...
0
7260
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
7160
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
7384
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,...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.