![]() |
| ||
| I'm sure there is an easy Loop solution - doing an update I want to update an access db with multiple records. They are property pictures. They may have the same listnumber, but all have a different ID#. There are not always a set amount of pics... may be 5 or 7 or 10, etc.. The DB fields are id, filedata (actual .jpg filename), picturename, listnumber I am trying to add names to all pictures at once instead of one at a time. Below is the code I have... it is only updating one record at a time. Data entry page: (output query: lookup grabs the pictures witha a specific listnumber ie:1950) <cfoutput query="lookup"> Processing page: <cfquery name="titlepicture" datasource="#dsn#"> Any help will be GREATLY appreciated! Thx in advance. |
| ||
| Re: I'm sure there is an easy Loop solution - doing an update To make clear: My problem is on the Processing page. I need to be able to update MULTIPLE images (filedatd field in db) with names (picturename field in db) They will have the SAME listnumber, but different ID numbers. |
| ||
| Re: I'm sure there is an easy Loop solution - doing an update Quote:
I believe if you update the db using the listnumber instead of the id, then you should be updating all records with that listnumber. ie: cfquery name="titlepicture" datasource="#dsn#" |
| ||
| try this! <cfoutput> ###################processing page################ <cfquery name="titlepicture" datasource="#dsn#"> |
| All times are GMT -4. The time now is 4:52 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC