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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems creating new field

Status
Not open for further replies.

bodmin

Technical User
Apr 1, 2004
98
GB
Hi guys,

I have created a new database, and a table that I am going to export data to, the problem I have is when I am creating the fields I keep getting a Type Mismatch error

Set fld = tdf.CreateField("ProductId", dbInteger)
tdf.Fields.Append fld

This is the code I have been using to create the field in the new database, anybody got any ideas why I keep getting this error message?

cheers in advance


 
I don't think we have enough information. The code you are displaying should be fine. What is the code relavent to this before it?
 
Have fixed this problem now, was a problem with my variable declaration had missed the DAO of the front of it

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top