dannau Posted August 4, 2007 Posted August 4, 2007 (edited) Hello to all, I'm finishing the design of a FM database that holds hotels, prices and services. One of the fields has to hold an image of the hotel. As there are hundreds of hotels to be feeded into the database, I've created a button to insert an image into the field. It worked a few days ago and doesn't anymore. I tried several solutions but must be missing something. Even when I transform a container field into a button with the "insert picture" function, it doesn't work either. I know this is a very basic question, and I'm sorry about it, but it gets me very angry as I've managed to put together the whole db with currency calculations, scripts and am stuck with this... stupid... basic... aaaaargh! Mark Edited August 4, 2007 by Guest
Fenton Posted August 4, 2007 Posted August 4, 2007 It has to Go To Field [ container field ] first, because the Insert commands don't specify a field. So, by defining the field on the layout as a button stops it actually going to the field (the button action does not recognize the field it's attached to, a common misunderstanding). Create a script that goes to the field first, the run Insert. Then you should be able to attach the script to the field.
dannau Posted August 4, 2007 Author Posted August 4, 2007 Thank you so much Fenton. Just managed to do it, really don't understand how it could work yesterday, but I probably was importing the picture directly to the layout, not to the database. Cheers, mark
dannau Posted August 4, 2007 Author Posted August 4, 2007 Hello to all, I had help from this forum to setup a button to insert an image in a container. I'm trying to make a second button to erase the same image from the container but the only command I found is Erase record/request which of course erases the whole.. uh... record. I couldn't find an "erase field content" command. Is there another way to do this? Thanks for the help. Mark
Fenton Posted August 4, 2007 Posted August 4, 2007 Either: Clear [ Container field ] or Set Field [ Container field; "" ] then Commit Record
dannau Posted August 5, 2007 Author Posted August 5, 2007 Thank you for your help. I'm in such a hurry with this db that I'm starting to overlook things. It was obvious after you told me. Mark
Recommended Posts
This topic is 6321 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now