Results 1 to 5 of 5

Thread: A Little Code Needed Plz...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    69

    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
    Attached Files Attached Files

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    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?

  3. #3
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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...
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  4. #4
    Addicted Member BlueRose's Avatar
    Join Date
    Jan 2002
    Location
    ISTANBUL
    Posts
    245

    Re: A Little Code Needed Plz...

    For first question you can add a sub like following

    VB Code:
    1. Private Sub DataGrid1_Click()
    2.    
    3.     With DataGrid1
    4.         .Col = 0
    5.         txtName = .Text
    6.         .Col = 1
    7.         txtID = .Text
    8.         .Col = 2
    9.         txtJoiningDate = .Text
    10.     End With
    11.    
    12. End Sub
    You can do while you think that you can do

    If you think my answer solve your question, please rate it.

  5. #5
    Frenzied Member
    Join Date
    Aug 2005
    Posts
    1,042

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width