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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |