Results 1 to 4 of 4

Thread: URGENT: How can I Alter the DBF structure in VBA?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    3

    URGENT: How can I Alter the DBF structure in VBA?

    Hello. Can someone help me with this one...

    I need to alter a DBF structure to change a numeric datatype precision and scale.

    Using ADO, I have tried to use the "ALTER TABLE <dbf> ALTER COLUMN SALES n(11,2)", but error "Incorrect syntax on ALTER TABLE."

    I have read on msdn doc that ALTER command does not work on Microsoft Jet Engine. So I tried DAO, "Opendatabase", but access denied/permission error occured.

    I will really appreciate any help or suggestion....

    Thanks in advance.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: URGENT: How can I Alter the DBF structure in VBA?

    Moved from ClassicVB

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    3

    Re: URGENT: How can I Alter the DBF structure in VBA?

    Yes, I have read some of the threads. I also have tried some of it but it still does not work. I still cannot alter the dbf structure.

  4. #4
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: URGENT: How can I Alter the DBF structure in VBA?

    here
    The response to the post is something about dbase only allowing 10 chars ? And you are trying for 11+2? or 11 and 2 decimal places?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width