Solved

Saving VB forms

Posted on 2000-05-12
9
160 Views
Last Modified: 2010-05-02
My app lets user create forms based on their needs. They select items they wanna see, and line number for each item to be on the form. After the form is created, I need to save it so they can refer to it in the future, and I also need to store this info(line no for each item no for each form in Accesss database). How can I save the forms so they can be used in the future? Thanks in advance.
0
Comment
Question by:sshayevich
9 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2804914
you want to save them so they can be used directly from the vb environment again?
0
 

Author Comment

by:sshayevich
ID: 2804928
Yes, they should be able to see the list of existing forms and select from them.
0
 
LVL 9

Expert Comment

by:GivenRandy
ID: 2804955
Hmm, write them to a file and read from them.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 28

Expert Comment

by:AzraSound
ID: 2804972
funny, i'm writing an app that is doing something similar...hadnt considered saving them back to be compatible with vb again...<listening>
0
 
LVL 3

Expert Comment

by:jjmartin
ID: 2805016
A VB form file is simply a text file.  It shouldn't be to difficult to open one up in notepad and determine the format you need to save it in to make it available to VB.
0
 

Author Comment

by:sshayevich
ID: 2805064
To jjMartin: I need to save form in the code
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 2805159
besides when you open it in notepad and change anything and save it again i think you will lose some dependency information. i just tried it and when i try to reopen the form in vb it lost its reference to the internet transfer control
0
 

Expert Comment

by:SpikeDog
ID: 2805740
You could always create your own form format for a text file. Instead of having it write back as a .frm file you could write it out into an ascii text file and have a function that will recreate the file from your saved text on the fly.
0
 

Accepted Solution

by:
ahmedali earned 100 total points
ID: 2809462
You need to save them in VB environment in specific folder in order tb reached at any time
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question