A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

i got error 3001 when try to open switchboard



 
 
Thread Tools Display Modes
  #1  
Old October 21st, 2004, 01:35 PM
F Andrew
external usenet poster
 
Posts: n/a
Default i got error 3001 when try to open switchboard

every time i try to open switchboard i got messege error 3001 and can not use
any wizard, is it any way to fixing it?
thank you in advance
  #2  
Old October 22nd, 2004, 03:45 PM
Geof Wyght
external usenet poster
 
Posts: n/a
Default

Could you please tell us what the error message is for
error 3001 and at what line in what procedure it occurs?
Geof Wyght
-----Original Message-----
every time i try to open switchboard i got messege error

3001 and can not use
any wizard, is it any way to fixing it?
thank you in advance
.

  #3  
Old October 23rd, 2004, 04:41 AM
F Andrew
external usenet poster
 
Posts: n/a
Default

Run-time error 3001
Invalid Argument

and after debug, this is the result

' Open the table of Switchboard Items, and find
' the first item for this Switchboard Page.
Set con = Application.CurrentProject.Connection
stSql = "SELECT * FROM [Switchboard Items]"
stSql = stSql & " WHERE [ItemNumber] 0 AND [SwitchboardID]=" &
Me![SwitchboardID]
stSql = stSql & " ORDER BY [ItemNumber];"
Set rs = CreateObject("ADODB.Recordset")
rs.Open stSql, con, 1 ' 1 = adOpenKeyset


the yellow mark is in the last comad..
thnak you


"Geof Wyght" wrote:

Could you please tell us what the error message is for
error 3001 and at what line in what procedure it occurs?
Geof Wyght
-----Original Message-----
every time i try to open switchboard i got messege error

3001 and can not use
any wizard, is it any way to fixing it?
thank you in advance
.


  #4  
Old October 25th, 2004, 01:55 PM
Geof Wyght
external usenet poster
 
Posts: n/a
Default

Sorry for the delay. I believe that if you Dim your
recordset as a DAO.Recordset your problem will go away.
You may have ADO and DAO objects in your database. If you
do, be explicit about what type they a ADODB.Recordset
etc...
Good luck.
Geof Wyght
-----Original Message-----
Run-time error 3001
Invalid Argument

and after debug, this is the result

' Open the table of Switchboard Items, and find
' the first item for this Switchboard Page.
Set con = Application.CurrentProject.Connection
stSql = "SELECT * FROM [Switchboard Items]"
stSql = stSql & " WHERE [ItemNumber] 0 AND

[SwitchboardID]=" &
Me![SwitchboardID]
stSql = stSql & " ORDER BY [ItemNumber];"
Set rs = CreateObject("ADODB.Recordset")
rs.Open stSql, con, 1 ' 1 = adOpenKeyset


the yellow mark is in the last comad..
thnak you


"Geof Wyght" wrote:

Could you please tell us what the error message is for
error 3001 and at what line in what procedure it occurs?
Geof Wyght
-----Original Message-----
every time i try to open switchboard i got messege

error
3001 and can not use
any wizard, is it any way to fixing it?
thank you in advance
.


.

  #5  
Old October 27th, 2004, 01:31 PM
F Andrew
external usenet poster
 
Posts: n/a
Default

thank you for helping me,
I chose to uninstall my windows XP sp2 to solve the problem, because before
i install it i can use my access properly,
when i use windows SP 2 i miss MSADO10.dll fromm my acces, because it change
with MSADO18.dll and other MSADO...dll, but i can not find msado10.dll

thank you

"Geof Wyght" wrote:

Sorry for the delay. I believe that if you Dim your
recordset as a DAO.Recordset your problem will go away.
You may have ADO and DAO objects in your database. If you
do, be explicit about what type they a ADODB.Recordset
etc...
Good luck.
Geof Wyght
-----Original Message-----
Run-time error 3001
Invalid Argument

and after debug, this is the result

' Open the table of Switchboard Items, and find
' the first item for this Switchboard Page.
Set con = Application.CurrentProject.Connection
stSql = "SELECT * FROM [Switchboard Items]"
stSql = stSql & " WHERE [ItemNumber] 0 AND

[SwitchboardID]=" &
Me![SwitchboardID]
stSql = stSql & " ORDER BY [ItemNumber];"
Set rs = CreateObject("ADODB.Recordset")
rs.Open stSql, con, 1 ' 1 = adOpenKeyset


the yellow mark is in the last comad..
thnak you


"Geof Wyght" wrote:

Could you please tell us what the error message is for
error 3001 and at what line in what procedure it occurs?
Geof Wyght
-----Original Message-----
every time i try to open switchboard i got messege

error
3001 and can not use
any wizard, is it any way to fixing it?
thank you in advance
.


.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Switchboards Jenn Connors New Users 1 October 30th, 2004 09:48 AM
Power Point Pack and Go scott Powerpoint 17 October 4th, 2004 05:57 AM
Icon shows open envelope in send folder. Roger D. Thompson General Discussion 5 August 11th, 2004 06:07 PM
Switchboard form views Garry New Users 4 July 14th, 2004 08:22 PM
datasheet forms open in form mode from the Switchboard Paul James Using Forms 5 July 13th, 2004 06:51 AM


All times are GMT +1. The time now is 06:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.