"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
Moderators: Public Relations Department, Players Department
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
Jos Elkink wrote:When I run the application, I get 'runtime error 13, type mismatch' ... anyone else who experienced this?
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
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.
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
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![]()
duck's behind his iron sheild and hopes the toothpick of doom misses
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.
Return to “General Discussion”
Users browsing this forum: No registered users and 1 guest