I have taken over an MS Access database that was created by an employee that has moved on. It appears that he has created a form in the database by importing a paper form that is used within our company. What makes me believe that he imported a paper form is the exactness of Access form in relation to the paper form.
I am not sure how to ask query this using Google nor Bing. Can someone point me in the right direction on how to do this, please? I need to do the same thing with another paper form.
Yes, June7 is right, this is a handy technique.
Scan your paper document as JPG or PNG
Create a blank Access Form, and from the Design ribbon menu, choose "Insert Image" and select your newly created JPG or PNG scan
For the image object, check the properties window and make sure the "Sizing Mode" is set to Clip (and not Stretch or Zoom)
Now re-size the Image on your form so you can see everything correctly.
Now add Text boxes on top of the image, to create fillable text fields, exactly over the same place as the ones in the scanned image behind your text boxes.
You can then make a Table with the same field names, and update the Form to use this Table as it's Data Source on the Data Tab of the Form properties.
Once you have the form working perfectly nicely,
a handy time-staving step is File -> Save Object As -> change the Form dropdown to Report
Now you have created a Report that is printable using the same data table you created earlier (and write macro or VBA code make sure you print only one record at a time if that is the normal behaviour you expect)
Related
I'm trying to create a form in MS Access where based on value we enter in a text box, that many text boxes will be created automatically. For ex, if value 3 is entered, three text boxes must be created.
Part of Code:
Dim box As Control
Set box = CreateControl("Form1", acTextBox)
But I get run time error "You must be in Design or Layout View to create or delete controls"
Is is not possible to dynamically create text boxes in MS Access. If we can, please suggest how to do.
Thank you
Instead of creating controls on the form based on a user entered requirement, you would normally have created as many controls as are needed beforehand (possibly positioning them correctly, and setting the tab order etc.), and then set their .Visible and .Enabled properties as required.
However, this is one of those instances where it may be that you are not using Access properly - any time that something is hard or difficult to do often means that you are not using it in the manner intended.
Regards,
I have a MS Access form that is bound to a query in the database. I added a textbox and added a row source to a Hyperlink datafield in the query. When I open the form, it won't allow me to drop a file into the textbox.
Here's the deal. When I follow this EXACT same process on a new form, it works perfectly. That is, I open a blank form and I bind the form to some new query, let's say qryNewIdeas. Then on the blank form i add a textbox, let's say Text0. Then, when I select Text0, I go to the data tab - row source and choose the dropdown arrow to select the hyperlink field, lets say NewIdeasAddress. I click SAVE and open the form. It works PERFECTLY.
BUT, when I repeat this on an existing form (the one where I need the thing to actually work), it does nothing. It adds and changes the textbox to a hyperlink box (I note this because of the blue underlined word that appears in the box). But it won't allow me to drop files to this location.
I tried commenting out ALL of my VBA code to try to make sure that something wasn't hindering it (say in an OnLoad event) AND I've checked all of the form and control box properties and they seem to be the same in both the existing form and the test form.
I can't determine why it works on one form and not the other; Solution needed.
If you have access to "the data tab - row source ..", you are in design view.
When you later open the form, you are in form view, a completely different animal which specifically prohibits design changes.
It sounds like you will have to rethink your concept.
I have a html file with some images in a directory. I would simply want to open a report and show the html file (including the images) inside the report. Is there a way to achieve this? Any help is greatly appreciated.
Thanks
I've found this : http://msdn.microsoft.com/en-us/library/dd207057.aspx. Tell me if it's useful? ;oP
To add HTML from a field in your dataset into a text box
1.On the Insert tab, click List. Click the design surface, and then drag to create a box that is the size you want.
The Dataset Properties dialog box opens. You can use a shared dataset or a dataset embedded in your report. For more information, click Dataset Properties Dialog Box, Query (Report Builder) or Dataset Properties Dialog Box, Query.
2.On the Insert tab, click Text Box. Click in the list, and then drag to create a box that is the size you want.
3.Drag an HTML field from your dataset into the text box. A placeholder is created for your field.
4.Right-click the placeholder, and then click Placeholder Properties.
5.On the General tab, verify that the Value box contains an expression that evaluates to the field you dropped in step 3.
6.Click HTML - Interpret HTML tags as styles. This causes the field to be evaluated as HTML.
7.Click OK.
Alright, this is what resolved the issue. I am converting the html to a image using CutyCapt and storing the image in the database as a blob. In the report I have a image control which refers to the image and this works fine.
Hope this helps.
Thanks everyone.
I want to create 'Navigation Forms' in 'ms Access' as it should look like a form but i need to navigate in between them.
And the forms are composed of queries creation of form is simple but the problem is like if i can create in 2010 or 2013 its just simple but i dont have upgraded version but i think there is some way to create page navigation like 2010 and 2013 in 2007.
Any help is accepted.
Here is a sample link in 2010(https://www.youtube.com/watch?v=ovcxmeyrILQ)
Tab Controls are NOT the same as Navigation Controls! Tabs Ctrls hold separate forms on each page or tab, which means when the main form loads it loads ALL the sub-forms that are contained on the various pages of the TabCtrl.
Sadly Nav Ctrls were introduced in A2010, however, I've been using them since 2003. Well obviously not exactly because they were introduced. But instead I used labels (not command buttons although you can use those - I chose labels because I wanted to change the background and font color of the selected "tab"). I also wrote a function that took the value of the label (aka subform name) and used that to change the form of a subform control which was placed directly below or beside the labels depending on whether I wanted a horizontal or vertical "nav ctrl".
I could upload the code for this, however, I believe, given that MS has given a better control than this work around AND you should be able to piece this together if you've got a basic working experience with VBA.
I currently have a form in access which has text boxes which refreshes itself every time you click on it. I am assuming that access has a dynamic way of updating the tables, ie as soon as you move the cursor away from the text box, it updates the tables. Is there any way of making this static ie. I should have a button which after clicking updates a set of text boxes into the table. Although this is not a feature which is desired, I am planning to use this to prevent multiple users corrupting the data in the table.
What you're asking for is standard behavior... The record will not be saved until the record has lost focus, rather than the field. If your form is saving after each field loses focus (desired in some applications) it has been set up that way (probably with an OnChanged event on the textbox).