Hi anyone. I need help... I need to write some code and I know what I want it to do, but I can't quite figure out what it needs to be. If I write in plain english what it needs to do, can someone help me with the code? Thanks so much!
1) Button cmdDelete on frmInventory. On Click, I need it to:
a) If they have selected a null record, give them an error message that says that you can't delete a null record and exit sub
b) For the record selected, get the value of the field FTPFileName.
c) Search all records in the recordsource (qryInventoryLookup) of this form and find out if there are any others besides this one that have this same FTPFileName.
If so (there are other records with this value in FTPFileName),
1. Delete this record from tblWorkflow
If not (this is the only record with this value in FTPFileName)
1. Delete this record from tblWorkflow and
2. Delete all records with this value in field FileName
from tblErrors
3. Delete all records with this value in field FileName
from tblField Errors
Thank you so much for any help! This one has been driving me crazy!