1
ห้อง MS Access / : ต้องการสร้างปุ่มโดยการเขียนโค๊ด ให้เขียนตัวเลขเป็นชุดๆละ 40 คน
« เมื่อ: 02 เม.ย. 63 , 19:39:40 »
คงต้องประยุกต์ใช้หน่อยละ เพื่อไม่ให้เป็นการลำบาก อ.
โพสต์นี้ได้รับคำขอบคุณจาก: TIM_cb
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Private Sub xxx_KeyPress(KeyAscii As Integer)
If KeyAscii >= 3585 And KeyAscii <= 3675 Then KeyAscii = 0
End Sub
Dim i As Integer
Dim c As String
For i = 1 To Len(Me.Text2)
c = Mid$(Me.Text2, i, 1)
If AscW(c) >= 3585 And AscW(c) <= 3675 Then
MsgBox "Found"
Exit Sub
End If
Next i
Private Sub Command10_Click()
Me.Dirty = False
Me.SerialNo.SetFocus
If IsNull(DLookup("SerialNo", "tblWareHouseAll", "SerialNo ='" & Me.SerialNo & "'")) Then
Call SaveRecord
DoCmd.OpenForm "frmBoxDetail", , , "SerialNo ='" & Me.SerialNo & "'"
Else
DoCmd.OpenForm "frmBoxDetail", , , "SerialNo ='" & Me.SerialNo & "'"
End If
End Sub
Sub SaveRecord()
Dim DB As Database
Dim RS As Recordset
Set DB = CurrentDb()
Set RS = DB.OpenRecordset("tblWareHouseAll", DB_OPEN_DYNASET)
RS.AddNew
RS![SerialNo] = Me.SerialNo
RS![BoxNo] = Me.BoxNo
RS![Sequence] = "1"
RS.Update
End Sub
ผมเปลี่ยน Access 2007 เป็น 2016 64bit มีปัญหา Link กับ oracle database ไม่ได้
ติดตั้ง ODBC ที่ SysWOW64 ตอนที่เช็ค configure ก็ไม่มีปัญหาอะไร
ตอนนี้มืดแปดด้านครับ เพราะนโยบายบริษัทจะต้องเปลี่ยนเป็น 64 bit ทั้งหมด ทุกเครื่อง
มีใครเจอปัญหานี้บ้างครับ และแก้อย่างไรครับ
มี Error.pdf ส่งมาให้ดูด้วยครับ
มีใครพอจะแนะนำวิธีการแก้ไขได้บ้างครับ