Solved

Saving VB forms

Posted on 2000-05-12
9
154 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 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