Duplicate Values (1 Viewer)

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
goodluck!
just had a p[lay for half hour and its great - thank you so much. im gonna try and understand the code one day - it kinda makes sense when i see it but i am a bunny trying to write it. anyway much appreciated. come and grab a book when youre in Cairns. :)
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,247
had to quickly google the place and wow what a nice place.
i only do virtual travel.
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
goodluck!
thanks - hey just one last query - is it possible to have images on that form ? the pictures for each item are stored on a different folder - imagepath, picture name . jpg. i was trying to do that with continuous forms but only 1 picture would display (seemed to be related to oncurrent condition).
Alternatively could i link to a single form which has a picture on it ?
i was just messing with your form but i couldnt seem to put a button that was visible either on the footer or under the list of items.
rob
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
when i mean click a link i mean click on the product and have a single form with a picture pop up.
so like if there is a match with multiple barcodes then i could see an image by clicking on the relevant item.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,247
on your Table add a Field (if you don't already have) that will save the "path" of the image (for that particular record).
you add an Image Control to your form (continuous or single item).
make sure your to Set the ControlSource to the Field name above.
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
on your Table add a Field (if you don't already have) that will save the "path" of the image (for that particular record).
you add an Image Control to your form (continuous or single item).
make sure your to Set the ControlSource to the Field name above.
yeah i tried with the form multicode - it works from a query when the 'addstock' field is true - it lists all different items but the picture for all is the same and then on the next page the picture changes tp the picture for the next item (i attached some screenshots)
 

Attachments

  • Screenshot 2021-10-26 20.43.39.png
    Screenshot 2021-10-26 20.43.39.png
    511.1 KB · Views: 103
  • Screenshot 2021-10-26 20.43.44.png
    Screenshot 2021-10-26 20.43.44.png
    574.6 KB · Views: 99
  • Screenshot 2021-10-26 20.43.47.png
    Screenshot 2021-10-26 20.43.47.png
    563.7 KB · Views: 103
  • Screenshot 2021-10-26 20.43.49.png
    Screenshot 2021-10-26 20.43.49.png
    508 KB · Views: 104

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,247
you should Bind your Image control (controlSource is Set to a field in your table that has the path of the image).
see this demo and see the Controlsource of the Image control in design view.
 

Attachments

  • sample.zip
    98.3 KB · Views: 110

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
i got your form to display 2 correct images but it came up with an error message (and the 2 items listed done have the same barcode NOR is their 'addstock' field true !
 

Attachments

  • Screenshot 2021-10-26 21.12.42.png
    Screenshot 2021-10-26 21.12.42.png
    372.3 KB · Views: 102

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,247
i also encounter that error while i am in A2007.
it is better to create new db and import all your tables, forms, queries, modules, macro, etc to this new database
before the worst comes in.

you should also try a New db with sample form with images
to see if there are no error.
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
you should Bind your Image control (controlSource is Set to a field in your table that has the path of the image).
see this demo and see the Controlsource of the Image control in design view.
members.iinet.net.au/~unclemeat/access forum (2).accdb
i uploaded it again with your form how i changed it a bit but now it gives the error.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,247
what version of access do you have?
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
i also encounter that error while i am in A2007.
it is better to create new db and import all your tables, forms, queries, modules, macro, etc to this new database
before the worst comes in.
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
so i imported everything to a new db. i also changed the 'oncurrent' to [event procedure] which has got rid of the error message but it stil only displays 1 item instead of both with the same barcode.
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
i kept a copy of the old samebarcode form - when i run that it still shows 2 listings (without pictures). not sure what i actualy did to change that though.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,247
upload the new one. you have enought post so you can zip the db and attach it.
 

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
hope that is right.
 

Attachments

  • New Compressed (zipped) Folder.zip
    4.4 MB · Views: 117

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
it seems to change it when im changing the form from split to continuous. it changes from a list of the inventory to a single item with correct picture.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,247
see if this continuous form will do for you (sameBarcode2)
 

Attachments

  • Database1.zip
    2.6 MB · Views: 145

PearlsBooks

New member
Local time
Today, 08:48
Joined
Oct 23, 2021
Messages
26
not sure what i have done but im getting a glitch - i copied the forms/queriy to the database and they worked.
then i close and reopen and get this message when i scan a code.
so i go into the design mode, go to the [event procedure], build event, i just look at the code without editing and close then back to form and scan and it all works fine again.
close database and restart and we go back to the error.
any idea what i could have done ?
 

Attachments

  • Screenshot 2021-10-27 06.04.11.png
    Screenshot 2021-10-27 06.04.11.png
    170.1 KB · Views: 97

Users who are viewing this thread

Top Bottom