1
My program does the insertion of records of both the services and the computers of a school library. As such the library office has to make a daily record and I would like to know if it is possible to list only the daily requests (services or computers)?
The goal was me through the textbox with the time of the system to be able to list all requests made on the day itself, whether it was in Listview or Datagrid, however the code I have listed all requests made in the BD.
The way to insert the requests is:
The boot code "keep"
How you are populating the Datagrid?
– Maicon Carraro
@Maiconcarraro populando?
– Ricards
How to fill in Datagrid data when clicked on Save?
– Maicon Carraro
@Maiconcarraro I edited, it’s on top. Make the entry in the service register and then in the listing it is supposed to appear only the records made on such a day.
– Ricards
I mean, when you click
Guardar
how do you search the data? It is bySqlCommand
?– Maicon Carraro
@Maiconcarraro is yes
– Ricards
You can put the code in your question for easy resolution?
– Maicon Carraro
I do not understand very well how the informed schedule will affect the query if you want to list all of the day, but for that you can change your
sql
forSELECT * FROM Requisição WHERE dataRequisicao >= Convert(date, getdate())
– Maicon Carraro
@Maiconcarraro I had already tried the select with a
Where
but not withConvert(date, getdate())
I used your select and got what I wanted, thank you!– Ricards
@Maiconcarraro With the code that my colleague and I have, after clicking on the save button everything is as we want, but when we leave and re-enter the application, the saved data disappears. Is there any way to keep them? Thank you.
– Forrobodo