We help IT Professionals succeed at work.

urgent !!! "invalid argument 3001 error"

kenmostafa
kenmostafa asked
on
hi all :
in my form ther's a menu item for creating a new 2000 access db file , every thing is ok in my form , but when clicking the menu item for creating , it cause the following error :

run time error 3001
Invalid argument

ive installed the MS visual studio SP4.0 but it didnt work also ...
notice : every thing went ok for MS access97
my OS is win2000 prof.

whats up there ???

Comment
Watch Question

Ryan ChongSoftware Tead Lead / Business Analyst / System Analyst / Data Engineer
CERTIFIED EXPERT

Commented:
Hi kenmostafa,

Kindly show your codes so experts can know more about your problem.

regards.
Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009
Commented:
You should check out the relevant code, and see which are the parameter values passed to the procedure/function.
Normally this are errors like an empty or missing value for required parameters, or an out-of-range value for enum parameters...

CHeers

Author

Commented:
hi all :
i've discovered the main problem ...
as angellll said , a parameter was missed , my code was :

set mydb = dbengine.workspaces(0).createdatabase("c:\emp.mdb" , dblanggeneral)

and after i added " dbversion25" (("c:\emp.mdb" , dblanggeneral ,dbversion25 ) every thing went good ...


many thanx for all ...

Commented:
???
If angelllll helped you solve your problem, don't you think it's appropriate for you to award him/her the points you initially offered for help?

See:   http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=expinput&qid=20181150
CERTIFIED EXPERT
Top Expert 2012

Commented:
I wouldn't hold your breath.  The questioner has open questions dating back to February (http://devx.experts-exchange.com/jsp/qShow.jsp?qid=20070497) and is not very responsive.

Here are kenmostafa stats:

Questions Asked 14
Last 10 Grades Given A A A A A B B B A B  
Question Grading Record 10 Answers Graded / 10 Answers Received

Anthony

Commented:
Egad!
Its just a measley 20 points!  C'mon, kenmostafa!  Show us your outstanding character and close this (and other) questions!

Here is some advice (free - no points necessary):

"If you do the right thing, everyone will respect you.  If you choose not to do the right thing, you won't even respect yourself."
CArnold

Commented:
kenmostafa,
   I would like to invite you to join our discussion:

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=visualbasic&qid=20207806

;)
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange

Explore More ContentExplore courses, solutions, and other research materials related to this topic.