CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2000
    Location
    Ohio
    Posts
    238

    How do you change a fields TYPE and SIZE values

    I have an existing database that when opened needs to be automatically updated to reflect all the new field types and sizes from the new database. I have the routine built into my VB app that searches for any NEW fields and adds them to the old database.. but I am having a hard time getting the program to update the type and size of old fields that may have changed.
    For instance.. what used to be just a text field now needs more than 255 characters of text.. so has to be changed to a memo field. How would I do this??
    every time I try to change the type.. I get an invalid operation error.
    Also note that the database does have data in it.
    Thanks
    Joe



  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: How do you change a fields TYPE and SIZE values

    that type of operation is just not allowed with existing fields

    the work around is to recreate the whole database as a separate file

    then delete the old DB and name the new tmp as old


  3. #3
    Join Date
    Nov 2000
    Location
    Ohio
    Posts
    238

    Re: How do you change a fields TYPE and SIZE values

    I could be mistaken, but I do think you can do this now with access2000. Anyone else heard of this?

    btw.. thanks for the answer.. you confirmed my fears



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

Featured