Hello,
The project I am working on is a kind of database that, when it enters a date, can extract texts that correspond to the same date from the database and show them in the program. I set a set of values for the day and month so that a number is obtained when the user selects. For example, May 25 will be 525 and I intend to put the dates in the database in the same way so that it selects the date. But whatever I do, it sets the date to 0 and gives an error.
I think the reason is that when the user enters the date, it is in another module, but loading the database is in another. I don't really know why it shows 0, because when I want to show the value in msgbox, it shows correct. Or maybe the code is different and I am writing it wrong.
Can anyone help?
The project I am working on is a kind of database that, when it enters a date, can extract texts that correspond to the same date from the database and show them in the program. I set a set of values for the day and month so that a number is obtained when the user selects. For example, May 25 will be 525 and I intend to put the dates in the database in the same way so that it selects the date. But whatever I do, it sets the date to 0 and gives an error.
I think the reason is that when the user enters the date, it is in another module, but loading the database is in another. I don't really know why it shows 0, because when I want to show the value in msgbox, it shows correct. Or maybe the code is different and I am writing it wrong.
Can anyone help?