| | |
initial value
![]() |
•
•
Join Date: Mar 2009
Posts: 776
Reputation:
Solved Threads: 137
Okay, this example works with both 2.5/3.51 and 3.6...
Good Luck
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim daoDb As DAO.Database Dim daoTd As DAO.TableDef Set daoDb = DBEngine.CreateDatabase("C:\z\MyDB.mdb", dbLangGeneral, dbVersion30) Set daoTd = daoDb.CreateTableDef("MyTable") daoTd.Fields.Append daoTd.CreateField("iID", dbLong) daoTd.Fields("iID").Attributes = dbAutoIncrField daoTd.Fields.Append daoTd.CreateField("vFName", dbText, 30) daoTd.Fields("vFName").AllowZeroLength = True daoTd.Fields("vFName").DefaultValue = "Enter First Name Here" daoDb.TableDefs.Append daoTd Set daoTd = Nothing daoDb.Close Set daoTd = Nothing
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- Initial Load Time issue in Web Application (ASP.NET)
- Initial Values (PHP)
- check initial charecters of a text... (Visual Basic 4 / 5 / 6)
- error: initial value of reference to non-const must be an lvalue (C++)
- Machine dies after initial boot up (Windows NT / 2000 / XP)
- Dell Latitude D620 , stacks with initial booting process (Motherboards, CPUs and RAM)
- 25,000 Indexed Pages - Programming & Web Dev Site - Low Cost Initial Inventory (Ad Space for Sale)
- Initial hang when browsing My Network Places (Networking Hardware Configuration)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: can two ms sql table display information on one vb datagrid???
- Next Thread: Easy for you complicate for me
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





