Cantr Objects Database Program

General out-of-character discussion among players of Cantr II.

Moderators: Public Relations Department, Players Department

User avatar
Emandir
Posts: 68
Joined: Fri Feb 06, 2004 9:21 am
Location: France

Postby Emandir » Sat Mar 20, 2004 2:58 pm

When I put cantr.mdb in C:\cantr\cantr, I got a 3024:
"Fichier 'C:\cantr\cantr.mdb introuvable'." (File... not found)
It is there though!

When I put it in C:\cantr (with Cantr.exe), I've got a 13...

:shock: :?

Jean-Luc
Never take anything seriously! (but feel free to correct...)

Image
west
Posts: 4649
Joined: Mon Aug 25, 2003 5:23 pm

Postby west » Sat Mar 20, 2004 4:03 pm

I just unzipped them both to my desktop. Worked fine.
I'm not dead; I'm dormant.
User avatar
Junesun
Administrator Emeritus
Posts: 807
Joined: Sat Feb 07, 2004 9:24 am
Location: Berlin, Germany
Contact:

Postby Junesun » Sat Mar 20, 2004 4:15 pm

Same here: works fine.

Judith
User avatar
Anthony Roberts
Posts: 2578
Joined: Mon Feb 02, 2004 11:45 pm
Location: Chatham, Ontario, Canada

Postby Anthony Roberts » Sat Mar 20, 2004 4:18 pm

Junesun wrote:Ok, here's the code for adding a column to an Access database:

-----------------------------------------------------------------------------------

Dim dbsYourDB As Database
Dim wrkLocal As Workspace
Set wrkLocal = CreateWorkspace("", "admin", "")
Set dbsYourDB = wrkLocal.OpenDatabase(App.Path & "\xyz.mdb")
Dim tblNew As TableDef
Set tblNew = dbsYourDB.TableDefs("Name of your table")
With tblNew
.Fields.Append .CreateField("Name of the new column", dbText)
End With

----------------------------------------------------------------------------------

This opens the database xyz.mdb, assuming it's in the same path as the program exe (App.Path), goes to the table called "Name of your table" and inserts the column "Name of the new column" as a Text field. If you need another field type, you can find the list of type constants in the category DataTypeEnum in the DAO library (part of the object catalogue). I think you can take it from here.

Judith


Thanks very much, I'll put this in my code and see what happens.

Jos Elkink wrote:When I run the application, I get 'runtime error 13, type mismatch' ... anyone else who experienced this?


This error means that some variable is trying to be put into another variable of a different type. Ie: It's trying to put letters into a variable with numbers :P

But you get it when it RUNS? No idea why... something must be wrong in the program.

Spectrus_Wolfus wrote:dunno if it's just me or if i need another programme but i can't even get the thing to run it gives me a run time error in axtive x


and

Lone Wolf wrote:A couple of things

First Anthony Thank you for doing all this work. You are the man...nest to Jos....and well...never mind lol

But I'm also getting a run-time error

Run-time Error '429':
Activex component can't create object

If I had more knowledge in codes I might have been able to figure this out my self........let this be lesson to everyone...stay in school and don't get kicked out for breaking some jerks hand after he slaps his girlfriend. Just stay in school.


Run time error in ActiveX. NOOOOO IDEAAAA what that error means, lol. It -could- maen you're missing the Visual Basic 6.0 Runtime Datalink Libraries. But, usually you get an error "VB6somethingorrather.dll missing" type error. You can try and download the VB6 Runtime DLLs and see if that helps. Ya need to go to Microsoft for the file. It's like... 8 MB, I'd say? No idea.

Emandir wrote:When I put cantr.mdb in C:\cantr\cantr, I got a 3024:
"Fichier 'C:\cantr\cantr.mdb introuvable'." (File... not found)
It is there though!

When I put it in C:\cantr (with Cantr.exe), I've got a 13...

Jean-Luc


No idea why this is happening. Are BOTH files (The cantr.exe AND cantr.mdb) in the same folder together? They need to be... maybe that's the problem. Even though you say they are in the same folder, maybe you moved one? Or even, renamed cantr.mdb to have a capital or something? No idea why this is happening... - I said that already.[/quote]
-- Anthony Roberts
rklenseth
Posts: 4736
Joined: Fri Aug 22, 2003 12:46 am

Postby rklenseth » Sat Mar 20, 2004 5:55 pm

Just to let you know, I am not having a problem. To those that are, make sure you unzip the file first. It won't work otherwise.
User avatar
Spectrus_Wolfus
Posts: 910
Joined: Tue Nov 04, 2003 3:09 am
Location: Sydney, Australia

Postby Spectrus_Wolfus » Sun Mar 21, 2004 12:14 am

Badger (rklenseth) wrote:Just to let you know, I am not having a problem. To those that are, make sure you unzip the file first. It won't work otherwise.


yeah jos unzip it before ya run it hehe :lol:

duck's behind his iron sheild and hopes the toothpick of doom misses
User avatar
Anthony Roberts
Posts: 2578
Joined: Mon Feb 02, 2004 11:45 pm
Location: Chatham, Ontario, Canada

Postby Anthony Roberts » Sun Mar 21, 2004 12:21 am

Spectrus_Wolfus wrote:
Badger (rklenseth) wrote:Just to let you know, I am not having a problem. To those that are, make sure you unzip the file first. It won't work otherwise.


yeah jos unzip it before ya run it hehe :lol:

duck's behind his iron sheild and hopes the toothpick of doom misses


The error Jos got has nothing to do with running the program from inside the zip program O.o;
-- Anthony Roberts
User avatar
kasuo
Posts: 54
Joined: Fri Mar 05, 2004 9:55 pm
Location: Long Beach, CA

Postby kasuo » Sun Mar 21, 2004 4:36 am

Hey, good work Anthony. I'm glad to see the database is up and running. Hopefully this will help in speeding up searches for tool building as well as reduce bandwidth use for searching through the tools on the site.
User avatar
Nick
Posts: 3606
Joined: Tue Jul 15, 2003 8:27 pm
Location: Halifax, Canada

Postby Nick » Sun Mar 21, 2004 6:48 am

I'm an idiot, I wasted like 20 minutes today looking through the manufacturing page for different things.
I forgot I had this program!!! :roll:
User avatar
Anthony Roberts
Posts: 2578
Joined: Mon Feb 02, 2004 11:45 pm
Location: Chatham, Ontario, Canada

Postby Anthony Roberts » Sun Mar 21, 2004 7:44 pm

kasuo wrote:Hey, good work Anthony. I'm glad to see the database is up and running. Hopefully this will help in speeding up searches for tool building as well as reduce bandwidth use for searching through the tools on the site.


That was the plan. Look at this code...

If Anthony Cuts Down Bandwidth Then
- Jos Thanks Anthony
- Anthony gains benifits that no one knows about
Else
- Everyone Hates Anthony
- Anthony cries
End If

Plus, Nick, I feel for you. I -wrote- the program and did the same thing too! I'm a dolt.
-- Anthony Roberts
User avatar
Anthony Roberts
Posts: 2578
Joined: Mon Feb 02, 2004 11:45 pm
Location: Chatham, Ontario, Canada

Postby Anthony Roberts » Wed Mar 24, 2004 8:50 pm

Hey Guys,

Sorry there's been a lack of update at all for the program. Weekdays I don't seem to have the time to code, but on the weekend I'll see what I can do.

In any case, why am I posting? Just to bump the post to the top area, so that more people can see that there's a program here that will help save Jos's costly bandwidth, give me more recognition (Not that I care ^.-), and allow more people to use it and find any problems with it (So far).

If I could make this a sticky I would, doesn't need to be though. Anyway, time to go do some coding, a little bit at that!

For everyone that has posted so far that has used this program, I ask that you send me a PM with your Real Name (If you'd like), Website (Also if you'd like), and your public e-mail address (Yet again, if you'd like) so I can put you in the credits as testers. That'd be great, thanks!
-- Anthony Roberts
User avatar
Nick
Posts: 3606
Joined: Tue Jul 15, 2003 8:27 pm
Location: Halifax, Canada

Postby Nick » Wed Mar 24, 2004 11:55 pm

I am getting Visual Studio 6 this week, and I have a lot I want to add to your program :D
User avatar
Anthony Roberts
Posts: 2578
Joined: Mon Feb 02, 2004 11:45 pm
Location: Chatham, Ontario, Canada

Postby Anthony Roberts » Thu Mar 25, 2004 12:56 am

You have fun with that :P I want to see it too, just to see what you've done ^.^ If I may, of course.
-- Anthony Roberts

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest