กระทู้เก่าบอร์ด อ.Yeadram
        
           1,644   2		  
          
					  
		    URL.หัวข้อ / 
		    URL
        
        ตัวหนังสือวิ่ง      
    
      ผมลองทำตัวหนังสือวิ่งจากตัวอย่างใน accboard 
Private Sub Form_Load()
DoCmd.Maximize
strTxt = Space(55) & "Hello Wellcome..."
Me.TimerInterval = 200
End Sub
Private Sub Form_Timer()
Dim x
'On Error GoTo Form_Timer_Err
x = Left(strTxt, 1)
strTxt = Right(strTxt, Len(strTxt) - 1)
strTxt = strTxt + x
lblMarq.Caption = Left(strTxt, 55)
Form_Timer_Exit:
   
Exit Sub
'Form_Timer_Err:
'MsgBox Err.Description, , "Form_Timer_Err"
'Resume Form_Timer_Exit
End Sub
มี Bug ขึ้นว่า Compile Error Valiable Not Defined และขึ้นแถบไฮไลท์ที่ strTxt
ที่บรรทัดนี้ครับ
strTxt = Space(55) & "Hello Wellcome..."
มีท่านใดเคยทำบ้างไหมครับ
ถ้าจะให้วิ่งเหมือนในเวปบอร์ดนี้ต้องปรับแก้โค้ดยังไงครับ ขอคำแนะนำด้วยครับ
    
  Private Sub Form_Load()
DoCmd.Maximize
strTxt = Space(55) & "Hello Wellcome..."
Me.TimerInterval = 200
End Sub
Private Sub Form_Timer()
Dim x
'On Error GoTo Form_Timer_Err
x = Left(strTxt, 1)
strTxt = Right(strTxt, Len(strTxt) - 1)
strTxt = strTxt + x
lblMarq.Caption = Left(strTxt, 55)
Form_Timer_Exit:
Exit Sub
'Form_Timer_Err:
'MsgBox Err.Description, , "Form_Timer_Err"
'Resume Form_Timer_Exit
End Sub
มี Bug ขึ้นว่า Compile Error Valiable Not Defined และขึ้นแถบไฮไลท์ที่ strTxt
ที่บรรทัดนี้ครับ
strTxt = Space(55) & "Hello Wellcome..."
มีท่านใดเคยทำบ้างไหมครับ
ถ้าจะให้วิ่งเหมือนในเวปบอร์ดนี้ต้องปรับแก้โค้ดยังไงครับ ขอคำแนะนำด้วยครับ
				2 Reply in this Topic. Dispaly 1  pages and you are on page number 1 
				
        
    2 @R07546    
        
    
      ขอบคุณครับที่แนะนำ ผมได้กลับไปดูโค้ดของฟอร์มเดิมก็มีไว้อย่างที่แนะนำด้วยตอนนี้ทำได้แล้วครับ 
    
    
   
    
      Time: 0.0640s
    
      
		
Dim strTxt As String
Private Sub Form_Load()
DoCmd.Maximize
...
...
...
ส่วนที่จะวิ่งเหมือนในเวปบอร์ดนี้ โดยอาศัยแค่สิ่งต่างๆที่มีมาให้กับ Access ผมคิดว่าไม่น่าทำได้ครับ อาจต้องหา ActiveX จาก Third Party มาเสริม