I have a quick question, is it possible to open a form created codes in access?
I have created my form but I can not find how to perceive its code in Visual Basic
Thank you for your reply
The only way I know is to export your form from access in an ASCII file, but this is not useful. Access forms are completely embedded in the mdb/accdb file and they need access executable to run. Usually you write events functions of the forms of your access project into the vba editor, but you can access properties and design details only from the design view.
Related
The Access template called "Assets" has a great feature in which you can click a button that runs a macro called "AddContactFromOutlook". This opens your Outlook contacts and lets you choose a name to add to a Contacts table.
The problem is, I can't find any basic instructions on how to use it. The macro commands are very simple: basically just "AddContactFromOutlook".
I copied a table from the Assets template into my database, created a form and added a button to run the macro, and it works fine. But when I did the same with a table and form of my own creation, I got this error:
The Command or Action 'AddFromOutlook' isn't available now
I suspect the problem is the names of my fields, although this error sounds like something different.
I've searched online, and mostly see information about special cases, not the basics.
I want to make a form for office use. Office computers don't take scripts due to security restrictions. The HTML form will be used by multiple users to save data to a single excel file.
An alternative... one I haven't needed to do in about 15 years, but maybe this will work for you...
Make a form in an Access DB. You're all on the same network with a shared drive. Access actually has protections for this exact sort of scenario. You won't have to worry about overriding each others' data, and you can use the nice form designer.
Try using Google Forms, it will collect/store data into a google-sheets that you can easily export/save-as MS Excel file.
This Google tutorial will guide you step-by-step to create the form.
I'm maintaining a VBA application in Access and a big part of this program is to make PDF's and email. I've already coded to create a PDF with PDF995, but the problem is that it keeps prompting where to save and a bunch of other questions.
Is there any solution that allows me to create PDF's in the background without prompting the user anything? I know where it needs to be saved, I know how it's going to be named, so that's not the problem.
Which Access version are you using?
In Access 2007 and above you can create PDF files out of the box, without stuff like prompting where to save.
Here's an example:
Execute Access 2007 Report and Export that Report to PDF Programmatically?
Note that in Access 2007, you have to install an add-in in order for this to work!
For Access 2003 and below, there's Steven Lebans' ReportToPDF.
I want to implement this use case found on the W3C File API document:
User agents should provide the ability to save a local file programmatically given an amount of data and a file name.
Example: A Spreadsheet App. User interacts with a form, and generates some input. The form then generates a CSV (Comma Separated Variables) output for the user to import into a spreadsheet, and uses "Save...". The generated output can also be directly integrated into a web-based spreadsheet, and uploaded asynchronously.
Source: http://www.w3.org/TR/file-upload/#requirements
From my understanding, it should be possible to create a completely offline Spreadsheet app with this, but I could not find a single example both in the W3C document or on the web that has this kind of use case implemented. At least not a completely offline one. Of course it doesn't need to be a spreadsheet application; a simple text editor or TODO manager would suffice. Am I missing something?
Also, would this make it possible to create one of the previously mentioned applications (text editor, todo manager or even spreadsheet app) from a single html5 file (with embedded JS and css)?
I seems I didn't search hard enough, here's an example of what I want http://html5-demos.appspot.com/static/a.download.html
i would like to distribute an access front end to some people and i want to make sure that they do not edit anything in it; however when i change the extension to ACCDR it makes all the forms and tables disappear. what settings do i have to change in order for them to be able to open forms but not view them in design view or make any changes to the forms?
The accdr extension puts your Access application into the "runtime" mode of Access, meaning the end user does not have the ability to see the built in navigation tools within Access. You would need to provide the navigation mechanism within the application yourself (for example, a startup form with links to the forms \ tables you want the users to be able to interact with).
The accdr extension hides objects from the user, but it does not prevent them from changing the file extension back to accdb and modifying your code \ objects.
To completely "lock down" the application you need to create an accde file instead. This prevents the user from being able to open a form in design view and make changes.
The following two links provide additional information about the file types and ways to deploy your application:
Intro to the Access 2007 file format
Deploy and Access 2007 Application