I have followed the instructions from here - http://www.access-programmers.co.uk/forums/showthread.php?t=35924 (and used a bit of my own knowledge (which isnt much!)) - to help me set up a datasheet, so when a record is double-clicked, it puts it into a new window in a form view so it can be viewed clearer.
This works great, but only if the datasheet is opened in its own window. If the datasheet is in a subform (as I want it to be), then it does not work, and it pops up a box asking for me to enter in a recordnumber (the field which I am linking both fields on)... When the datasheet is in its own window, it gets the information fine.
How do I go about editing the code which I'm using to make this work?
StoreInformationQry = Main form
RelatedLDTInformation = subform (datasheet which has the list of records in which are related to a store number in the main form)
RelatedLDTInformation2 = new form which loads when a record in "RelatedLDTInformation" is double clicked.
Code used (it has been put in "RelatedLDTInformation" as a onDblClick procedure).
Thanks in advance. I will explain further if needed.
This works great, but only if the datasheet is opened in its own window. If the datasheet is in a subform (as I want it to be), then it does not work, and it pops up a box asking for me to enter in a recordnumber (the field which I am linking both fields on)... When the datasheet is in its own window, it gets the information fine.
How do I go about editing the code which I'm using to make this work?
StoreInformationQry = Main form
RelatedLDTInformation = subform (datasheet which has the list of records in which are related to a store number in the main form)
RelatedLDTInformation2 = new form which loads when a record in "RelatedLDTInformation" is double clicked.
Code used (it has been put in "RelatedLDTInformation" as a onDblClick procedure).
Thanks in advance. I will explain further if needed.