Page 3 of 3 FirstFirst 123
Results 31 to 40 of 40
  1. #31
    ahmad is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    18
    dear i mean, in following coding


    DoCmd.OpenReport "statement", acViewPreview, , "Dateofissue >=#" & Me.textbox1.value & "# And Dateofissue <= #" & Me.textbox2.value & "#"

    i wanna add another textbox3 in form and above coding. and when i click button, open report only particular report that i enter text in textbox3 with date range that i entered date. hope u understand. plz reply

  2. #32
    blueraincoat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Shanghai,CHN
    Posts
    99
    OK,you mean in the textbox3 user enter the date range directly, and on command button click you want the particular report opened, right?
    Of course you can. Just make sure the date range entered is correct, it's supposed to be
    Dateofissue>=textbox1 and Dateofissue<=textbox2
    The whole syntax may be
    DoCmd.OpenReport "statement", acViewPreview, ,me.textbox3.value

  3. #33
    ahmad is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    18
    dear i have a textbox3 that has name value, when i enter both date and textbox3 value and click button, open report that has all textbox3 value and date range also.

    in short, textbox1, i entered first date and textbox2, i entered second date and textbox3, i entered name. and i click buton, open report that has all records which has same name and date range also.
    help me

  4. #34
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It is certainly possible. Why don't you try? It would follow the same pattern, except a text value would require ' around it instead of #.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #35
    ahmad is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    18
    i have tried bt i m unable to do it. can u plz add textbox3 in following coding that take textbox1,textbox2,textbox3 condition. plzzzzzzzzzzzzzz

  6. #36
    ahmad is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    18
    DoCmd.OpenReport "statement", acViewPreview, , "Dateofissue >=#" & Me.textbox1.value & "# And Dateofissue <= #" & Me.textbox2.value & "#"

  7. #37
    blueraincoat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Shanghai,CHN
    Posts
    99
    what you need is just add another condition,right?
    it's very simple.
    DoCmd.OpenReport "statement", acViewPreview, , "Dateofissue >=#" & Me.textbox1.value & "# And Dateofissue <= #" & Me.textbox2.value & "# And " & condition3

  8. #38
    ahmad is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    18
    dear when i writing following code, error is coming.

    DoCmd.OpenReport "statement", acViewPreview, , "Dateofissue >=#" & Me.Text106.Value & "# And Dateofissue <= #" & Me.Text108.Value & "#" And "& toms=" & Me.Text94.Value

    plz tell me the correct coding if it is wrong.

  9. #39
    blueraincoat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Shanghai,CHN
    Posts
    99
    http://www.baldyweb.com/wherecondition.htm
    Please read this page wrote by Paul carefully,and hope you can find what's going wrong, and learn how to write the where condition.

  10. #40
    ahmad is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    18
    hi all, plz help me. when i open ms access file, error is coming. but when i open old file, that is opening. plz solve my problem.

    the error is
    "microsoft jet database engine stopped the process because you and another user are attempting to change the same data at the same time"

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Filling in blank textbox on a report.
    By cowboy in forum Reports
    Replies: 3
    Last Post: 04-16-2010, 02:50 PM
  2. Report TextBox printing ID Number, not text
    By ZipDoc in forum Reports
    Replies: 8
    Last Post: 02-01-2010, 12:30 PM
  3. Replies: 2
    Last Post: 09-26-2009, 07:19 AM
  4. Keeping text in a report textbox
    By Hawkx1 in forum Reports
    Replies: 2
    Last Post: 11-13-2008, 04:11 PM
  5. Report will not print a bound textbox
    By vvrt in forum Reports
    Replies: 0
    Last Post: 03-16-2006, 02:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums