A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

corrupt form



 
 
Thread Tools Display Modes
  #1  
Old July 16th, 2004, 03:04 AM
Richard
external usenet poster
 
Posts: n/a
Default corrupt form

Hi

I remembered someone posted a code to save a form to text and reimport it in
the immediate window. Appreciate if someone can show me the code as I think
one of my forms is corrupted.

Thanks in advance

Richard


  #2  
Old July 16th, 2004, 03:07 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default corrupt form

Undocumented, but use:
SaveAsText
LoadFromText
The arguments are obvious from there.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Richard" wrote in message
...

I remembered someone posted a code to save a form to text and reimport it

in
the immediate window. Appreciate if someone can show me the code as I

think
one of my forms is corrupted.



  #3  
Old July 16th, 2004, 03:31 AM
Richard
external usenet poster
 
Posts: n/a
Default corrupt form

Thanks Allen

I tried it but an error comes up with "Expected: = "

How do I overcome this? This saves to the database itself?

Thanks again
Richard


"Allen Browne" wrote in message
...
Undocumented, but use:
SaveAsText
LoadFromText
The arguments are obvious from there.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Richard" wrote in message
...

I remembered someone posted a code to save a form to text and reimport

it
in
the immediate window. Appreciate if someone can show me the code as I

think
one of my forms is corrupted.





  #4  
Old July 16th, 2004, 05:11 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default corrupt form

If the database is corrupt, anything can happen.

Not sure where you are trying to use SaveAsText, but try the Immediate
Window (Ctrl+G).

This does not save the whole database. It simply exports one of the objects
(e.g. a form) to a text file. You can then import that object into another
database by using LoadFromText.

For other ideas on sorting out a corrupt database, see:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Richard" wrote in message
...
Thanks Allen

I tried it but an error comes up with "Expected: = "

How do I overcome this? This saves to the database itself?

Thanks again
Richard


"Allen Browne" wrote in message
...
Undocumented, but use:
SaveAsText
LoadFromText
The arguments are obvious from there.


"Richard" wrote in message
...

I remembered someone posted a code to save a form to text and reimport

it
in
the immediate window. Appreciate if someone can show me the code as I

think
one of my forms is corrupted.



  #5  
Old July 19th, 2004, 07:07 AM
Richard
external usenet poster
 
Posts: n/a
Default corrupt form

HI Allen

Thanks again for your patience. I did it at the immediate window and got the
error message.

I typed:

saveastext(acForm,"payment","paymenttext")

and got this

---------------------------
Microsoft Visual Basic
---------------------------
Compile error:

Expected: =
---------------------------
OK Help
---------------------------

Regards
Richard


"Allen Browne" wrote in message
...
If the database is corrupt, anything can happen.

Not sure where you are trying to use SaveAsText, but try the Immediate
Window (Ctrl+G).

This does not save the whole database. It simply exports one of the

objects
(e.g. a form) to a text file. You can then import that object into another
database by using LoadFromText.

For other ideas on sorting out a corrupt database, see:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Richard" wrote in message
...
Thanks Allen

I tried it but an error comes up with "Expected: = "

How do I overcome this? This saves to the database itself?

Thanks again
Richard


"Allen Browne" wrote in message
...
Undocumented, but use:
SaveAsText
LoadFromText
The arguments are obvious from there.


"Richard" wrote in message
...

I remembered someone posted a code to save a form to text and

reimport
it
in
the immediate window. Appreciate if someone can show me the code as

I
think
one of my forms is corrupted.





  #6  
Old July 19th, 2004, 11:42 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default corrupt form

Drop the brackets, or use Call in front of the sub.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Richard" wrote in message
...
HI Allen

Thanks again for your patience. I did it at the immediate window and got

the
error message.

I typed:

saveastext(acForm,"payment","paymenttext")

and got this

---------------------------
Microsoft Visual Basic
---------------------------
Compile error:

Expected: =
---------------------------
OK Help
---------------------------

Regards
Richard



  #7  
Old July 20th, 2004, 01:15 AM
Richard
external usenet poster
 
Posts: n/a
Default corrupt form

Thanks Allen

Managed to do it...

Richard


"Allen Browne" wrote in message
...
Drop the brackets, or use Call in front of the sub.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Richard" wrote in message
...
HI Allen

Thanks again for your patience. I did it at the immediate window and got

the
error message.

I typed:

saveastext(acForm,"payment","paymenttext")

and got this

---------------------------
Microsoft Visual Basic
---------------------------
Compile error:

Expected: =
---------------------------
OK Help
---------------------------

Regards
Richard





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching Records Melissa Lambino New Users 6 July 20th, 2004 04:51 AM
Modal form Praveen Manne Using Forms 1 July 6th, 2004 10:49 PM
Modal form Praveen Manne General Discussion 1 July 6th, 2004 10:49 PM
surely a form with a ListBox can be used in a query? 1.156 Running & Setting Up Queries 14 June 2nd, 2004 04:54 PM
Form Doesn't Go To New Record Steve New Users 15 May 16th, 2004 04:33 PM


All times are GMT +1. The time now is 10:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.