1 Attachment(s)
A Little Code Needed Plz...
Hi,
I need the following to complete my project plz.
1. The text boxes should be filled with data automatically with the selected row in the datagrid.
2. I need the search code for the “Search By Date” command button. When we enter “From” & “To” dates we should get all the dates in between those date in datagrids.
Could somebody help me in this regards plz.
SWEETIE_2005
Re: A Little Code Needed Plz...
What have you done until now? What is the problem with your current code? Does it give you an error?
Re: A Little Code Needed Plz...
Quote:
Originally Posted by sweetie_2005
Hi, I need the following to complete my project plz.
If you need someone to do your work for you, there are sites where you can hire a programmer for very little money. Rent-a-coder comes to mind...
Re: A Little Code Needed Plz...
For first question you can add a sub like following
VB Code:
Private Sub DataGrid1_Click()
With DataGrid1
.Col = 0
txtName = .Text
.Col = 1
txtID = .Text
.Col = 2
txtJoiningDate = .Text
End With
End Sub
Re: A Little Code Needed Plz...
sweetie 2005:
I don't know anything about your project, but it appears to me that a more logical way to have it work would be for someone to enter their ID and then their name and date joined would automatically be filled in or to have them enter their name and then the ID and date joined would automatically be fillen in.
Then when they move on to do a search, either by ID or date, they would enter the ID to search for the corresponding ID records which would then appear in your datagrid or if they entered two different dates, the records between those dates would appear in the datagrid.
Like I said, I don't know anything about the flow of your project.