Change field length in Access 97 file format(Access 2000)

P

Prashant

I want to change the data type "text" length value 100 by 250 but since I am
having access 2000 with access 97 file format i can not change the length. I
also dont have office 97 setup or CD. So what to do?
 
J

Jeff Boyce

Before you do any of this, make a backup copy...

If I'm understanding your situation, you have an .mdb file that is in Access
'97 format that you want to alter, but you only have Access 2000.

If you do not have to keep the original as Access '97, you can use your
Access 2000 to convert the file to Access 2000 format, then make your
change. And if you need the .mdb in Access '97, you can use Tools |
Database ... | Convert ... to save the database "back" into Access '97
format after your change.

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
 
J

Jamie Collins

Before you do any of this, make a backup copy...

If I'm understanding your situation, you have an .mdb file that is in Access
'97 format that you want to alter, but you only have Access 2000.

If you do not have to keep the original as Access '97, you can use your
Access 2000 to convert the file to Access 2000 format, then make your
change. And if you need the .mdb in Access '97, you can use Tools |
Database ... | Convert ... to save the database "back" into Access '97
format after your change.

The OP could use ALTER TABLE SQL DDL via the Microsoft.Jet.OLEDB.4.0
provider, even on a Jet 3.51 database, something like:

ALTER TABLE MyTable ALTER my_column VARCHAR(40) DEFAULT '{{NONE}}' NOT
NULL

Jamie.

--
 
P

Prashant

Jeff Boyce said:
Before you do any of this, make a backup copy...

If I'm understanding your situation, you have an .mdb file that is in Access
'97 format that you want to alter, but you only have Access 2000.

If you do not have to keep the original as Access '97, you can use your
Access 2000 to convert the file to Access 2000 format, then make your
change. And if you need the .mdb in Access '97, you can use Tools |
Database ... | Convert ... to save the database "back" into Access '97
format after your change.

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Hello Jeff
I converted it to 2000 file format but it giving me problems of garbage values
And also database size is reducing drastically.
 
P

Prashant

Jamie Collins said:
The OP could use ALTER TABLE SQL DDL via the Microsoft.Jet.OLEDB.4.0
provider, even on a Jet 3.51 database, something like:

ALTER TABLE MyTable ALTER my_column VARCHAR(40) DEFAULT '{{NONE}}' NOT
NULL

Jamie.

Hello Jamie

Thanks for your response
But it isnt working I wrote query like this

ALTER TABLE kp_part ALTER ENGL2 TEXT(250) NOT
NULL

but this one is updating registry value of MaxLocksPreFile value
and no change in table field value
 
J

Jeff Boyce

Prashant

That sometimes happens if the original version was not fully compiled. Have
you tried re-compiling your Access 2000 version? Have you opened a code
module in the A2000 version and confirmed that a reference is being set to
Microsoft DAO? Is that DAO reference located above the ADO reference?

We're not there, so we have no idea what "garbage values" means. What are
these, where are they happening?

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top