Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!


    btaw sakto man sila dli man acceptable ang null value equals sa text1.text. para safe nalng! inggon ani-a nalng para maka send keys ka dayon...
    [KeyAscii = 13 kay ENTER na sya sa keyboard]


    Private Sub Text1_KeyPress(KeyAscii As Integer)
    Â* Â* Â* Â* If KeyAscii = 13 Then
    Â* Â* Â* Â* Â* Â* Â* Text1.SetFocus
    Â* Â* Â* Â* end ifÂ*
    End Sub

  2. #12

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    murag lain raman siguro ang Ascii value sa integer. kay imo man gi-declare ang KeyAscii ug integer.
    try this one:
    _________________________________________________
    If KeyAscii = CInt(vbKeyTab) Then
    If Text1 = Null Then
    Text1.SetFocus
    Else
    KeyAscii = vbKeyTab
    End If
    End If

    End Sub
    _________________________________________________

  3. #13

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    use keydown event procedure to handle keystrokes not key ascii if your using vbkeys

  4. #14

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    wow, share mo sa inyo VBA, forms para excel

  5. #15

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    guys, naa ko pangutana ba..

    unsay nakalahi ani nga code...kanang mag retrieve ka or mag entry ka sa database ba..

    Legend:

    ors = recordset
    fname = field
    lname = field
    _________________________________________________

    Code:

    ors("fname") = txtfname
    ors("lname") = txtlname

    unsay difference kung kini ang gamiton?

    ors!fname = txtfname
    ors!lname = txtlname
    _________________________________________________

    can anyone explain please?


  6. #16

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    Quote Originally Posted by digitalsuperman
    guys, naa ko pangutana ba..

    unsay nakalahi ani nga code...kanang mag retrieve ka or mag entry ka sa database ba..

    Legend:

    ors = recordset
    fname = field
    lname = field
    _________________________________________________

    Code:

    ors("fname") = txtfname
    ors("lname") = txtlname

    unsay difference kung kini ang gamiton?

    ors!fname = txtfname
    ors!lname = txtlname
    _________________________________________________

    can anyone explain please?


    digi those codes are the same assigning values to your fields. the difference is use (!) bang symbol to shortcuts database fields.

  7. #17

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    Yes both methods are correct. I'm not sure I know why they VB have that maybe they are incorporating the older versions of data accessing.

    I actually know three ways:
    a. using the column index of the recordset (table)
    ors(0) = txtFname
    ors(1) = txtLname

    b. using the column name as index
    ors("fname") = txtFname
    ors("lname") = txtLname

    c. using the column name as properties
    ors!fname = txtFname
    ors!lname = txtLname

    Thanks.

  8. #18

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    i need help with this..

    i need the code kanang mo load sa report(VB rpt) using parameters.. like sa sql statement.. selecting from ListView... unsaon man?? i cant do it right.. ok siya sa first click peru if mo.choose ko og lain, mao ra gihapon ang mugawas, dili mausab ang value sa variable.

  9. #19

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    Private Sub mnu2Exit_Click()
    Â* Â* Â*Unload Me
    End Sub
    __________________________________________________ ___________________________

    Problem: After execution, the whole application will hang or pause. Please give me a solution ASAP?

    B w8ting... Tnx daan!


  10. #20

    Default Re: VB Debugging Brain Freeze!... HELP ASAP!

    Quote Originally Posted by nunobone
    i need help with this..

    i need the code kanang mo load sa report(VB rpt) using parameters.. like sa sql statement.. selecting from ListView... unsaon man?? i cant do it right.. ok siya sa first click peru if mo.choose ko og lain, mao ra gihapon ang mugawas, dili mausab ang value sa variable.
    Problem na sa data report, you can solve that by closing the recordset if it was previously opened, or dili nimo e bind and datareport sa dataenvironment at design time, run time lng.

    Ex, u have a datareport binded to a DataEnvironment1 with command text named "Command1" (early binding).

    Code:
    if DataEnvironment1.rsCommand1.State =1 then
    DataEnvironment1.rsCommand1.Close
    end if
    
    ' enter query to filter records
    DataEnvironment1.Commands("Command1").CommandText = "Select * from table1 where field1='test'"
    DataReport1.Show

  11.    Advertisement

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

 
  1. CEBU as a country, share ur opinions and point of views...
    By bongjo in forum Politics & Current Events
    Replies: 18
    Last Post: 04-10-2009, 04:28 AM
  2. kinsay naa spitz pups dre? share ur exp with them beh...
    By baby_jenie in forum Pet Discussions
    Replies: 1
    Last Post: 05-21-2008, 05:36 PM
  3. Share ur Barbeque Sauce Kanang pinaka the best
    By skop in forum Food & Dining
    Replies: 5
    Last Post: 01-07-2008, 03:35 AM
  4. share ur problems... n70.. tabangay ta :)
    By sheka in forum Gizmos & Gadgets (Old)
    Replies: 19
    Last Post: 01-30-2007, 11:45 AM
  5. Replies: 1
    Last Post: 07-23-2006, 01:49 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
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top