I have a userform that allows users to sign out items and return them whenever; all data is put onto a table
When they return it, they just put their name in, the item the want to return, and the code searches the table for their name and the item and inputs the date they returned it a few columns over.
The problem is, I can't get it to work. Like I said, i'm using a search function to count through the rows and match up the inputted name and item.
The most frustrating thing is everything worked a while ago but I recently added more columns to the table and I thought I changed everything correctly, but it seems I haven't, and I can't seem to find where I messed up.
Example: NameA takes out itemA and then returns it. A messagebox should appear saying the item was returned, but it doesn't appear. It also doesn't sppear to be returned on the table itself.
That's the main problem. I'm also having a problem with the error messagebox. If NameA tries to return ItemB without ever signing it out, a message box should appear, but it doesn't. Not too concerned because it shouldn't be a problem as long as staff don't purposely do this.
Lastly, how can I make sure the "date to be returned" is always consistent in it's format? I have the cells formatted as Long Date but inputting different date formats seem to make it stay as is.
Thanks, any help is appreciated.
Bookmarks