Access User Form unintentionally altering data table records -


i have been using ms access aid in generating pdf reports based on table. have created form contains text box entering client's name (this value in main table) , button when clicked runs code:

private sub cmdprintrecord_click()      dim strreportname string     dim strcriteria string      strreportname = "current sp report"     strcriteria = "[owner]='" & me![owner] & "'"     docmd.openreport strreportname, acviewpreview, , strcriteria  end sub 

the idea here generate individual pdf report based on clients name.

the above procedure has been able however, have encountered run it, data in table affected, client name field.

for example: i'll run report client "anthony" , shows 10 products correct, if go , run same report again show 11 products. if procedure here altering data table.

how can troubleshoot issue , or there alternatives recommended?

thanks.

attached ms link obtained source code: https://support.microsoft.com/en-us/kb/209560


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -