Get Id recordset on Image Click ACCESS 2013 - ms-access

I have a list of projects that results from a query in source of my form.
Depending on the state of a field, I change the appearance of an image (validated or Unvalidated icon) via the controlsource of the control image. It works very well.
In a second time, on image click, I need to get the ID of the record of chosen line (DP_ID). And that's where I can not do it. Whatever line you choose, it's always the first ID I get.
PS: This function works with buttons, but the control Butoon has no ControlSource and I can not load the image of it.
Do you know a solution?

Related

I need to Click on table cell value of a web page in automation anywhere tool

I am new to Automation Anywhere. I am trying to click on specific cell value of a web page table.
I have cloned the table object and applied action "Click on cell by index" provided by automation anywhere tool on specific row and column.
Secondly, I tried Mouse Click functionality but, on search base position of cell where to click will not always be the same that's why cant implement mouse click.
Screenshot is attached what I have done so far, Nothing happens by click on the cell. I want to click on the value present in the cell.
I want to click on highlighted portion mentioned in below screenshot:
Any kind of help will be appreciated.
Could you attach a screenshot of the full search criteria? I'm sure it has to be something with the path and DomXpath.
Make sure that below points have been checked:
The object properties should be unique and non changing. This is required to identify the object correctly during execution
Check whether object cloning is working properly with current screen resolution. If not, you need to change the screen resolution

Microsoft ACCESS doesn´t show photo in form

I´m creating a form that displays the info of all of the employees, including their photo.
When in design view, I've tried using an image control and defining in its control source.
However, when I change to form view and navigate the employees records, their photo isn´t shown.
I've tried changing the field (where the photos are stored) data type to text, instead of hyperlink (as shown in this youtube video: https://www.youtube.com/watch?v=f5ZOOMrDjtU ) but the photos still do not appear.
The photos are stored as hyperlinks, that show the file path, and if i'm in datasheet view of the table, I can click on the employees photo hyperlink and it opens their photo.
Also, in access options, I have this picture property storage format selected: and the images are jpg files.
Does someone know how I can solve this issue? What could I have done wrong?
Thank you.
A true hyperlink in Access is made of 3 parts separated by # character.
display text # file name # any reference within the file
More info http://allenbrowne.com/casu-09.html
The hyperlink structure won't work in Image control ControlSource property and can't simply convert the hyperlink field to a text type as the resulting string will not be a valid file path. Either manually enter correct image file path or use string manipulation code to extract file path part from the hyperlink field and save to a text field (x represents fieldname):
Mid(Left(x,InStrRev(x,"#")-1),Instr(x,"#")+1)
On second thought, that expression could be in the ControlSource property so the hyperlink field could be retained as is and a text field not needed.
More info on expressions in ControlSource property: Access Form: `abc.Picture="xyz.jpg"` makes listbox & textboxes "blink" once

Hyperlink box (txtbox) on Access Form won't allow drop

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.

DOM - Select Value from a Field that has a Search Component and a Drop Down

I have been working on this forever. I have attached a first picture of the steps I am trying to do in VBA. This particular field that I have having trouble populating for a client of mine appears to be a drop down but when you click it, it has a search field. I know the option value I want the field to be set to but using doc.getElementbyID("id_referrer").selectedIndex = fieldValue is not working. See the first picture for the steps of what I'm trying to do, then the second picture for the behind the scenes look at the classes and then all the different commands that I've tried to populate this field. The save button works, but nothing ever is populated for the Referrer or it bombs.

Hyperlink control in Access App

I've created a hyperlink control on a form page in an Access 2013 App hosted in SharePoint 2013, and want the text to display the same text ("Print Timesheet") while the actual link itself varies based on the value of a field in the record. This is so that I can link to a separate application using a query string with the individual record ID, which gets the data directly from the azure database and formats it in order to be printed out.
I've tried a macro expression to create the link address that runs "on current" and sets the value of the hyperlink, and also tried a computed column in the table to create the link which I pass to the hyperlink control value. I've set the "Default Display Text" on the hyperlink control to "Print Timesheet" in both cases.
The problem I have is that whichever way I try it, changing the value on the fly like this overrides the default display text of the hyperlink so that it displays the address itself rather than the text I want to display.
Is there any way round this?
Thanks,
Duncan
I am not sure if you got your answers. I was randomly looking on internet and found your query.
I thought the thread Troubles with Hyperlink control in Access Web App forms may have your answer.
LILizEidsness replied on August 21, 2014See post history
.....
If you have to build a url field dynamically, the basic syntax is
displaytext#url#
so, in my dynamic field....
=Concat("Click here#/relative/path/on/my/sharepointsite/allitems.aspx&ID=",[ID],"#")
....
You could use a label on the form to represent the link. Have the Label.Caption property set to "Print Timesheet" and use the On Current event to set the Label.HyperlinkAddress property to whatever the address from the recordsource is.