Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADOX character format

Status
Not open for further replies.

simoncpage

Programmer
Joined
Apr 4, 2002
Messages
256
Location
GB
I am using the following sub to create a table in an access database, however some of the figures in my database need to formated. i.e 10,000 rather than 10000

basically what are the other commands other than adVarWChar that I am using, to format text into a table?

Any help would be great!

---------------------------------------------
Dim catDB As ADOX.Catalog
Dim tblNew As ADOX.Table
Dim i As Integer

Set catDB = New ADOX.Catalog
catDB.ActiveConnection _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strDBPath

Set tblNew = New ADOX.Table.
With tblNew
.Name = "Hello"
With .Columns

For i = 0 To (findlastreviewsrow() - 2)

.Append "" & Range("topleft").Offset(0, i).Value & _
"", adVarWChar

...etc

-----------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top