ASDASD

--====================== 不常用SQL語法======================--

-- 修改資料欄位型態

----------------------------------------------------------------------

ALTERTABLEABCTABLEDROPDF__ABCTABLE__NAME__082E6AE0

M 發表在 痞客邦 留言(0) 人氣()

<script src="https://gist.github.com/michaelctwk/11d75bf00b5c2bd08b78.js"></script>

M 發表在 痞客邦 留言(0) 人氣()

1、查找重複內容公式:

     =IF(COUNTIF(A:A,A2)>1,"重複","")。

2、用出生年月來計算年齡公式:

    =TRUNC((DAYS360(H6,"2009/8/30",FALSE))/360,0)。

M 發表在 痞客邦 留言(0) 人氣()

<script src="https://gist.github.com/michaelctwk/7fb4620e5acd5e803ad0.js"></script>

M 發表在 痞客邦 留言(0) 人氣()

Imports System.Data

Imports System.Net.Mail

Imports System.IO

Public Class MailFunction

    Private PublicFun As New PublicFunction

M 發表在 痞客邦 留言(0) 人氣()

16


10




16

M 發表在 痞客邦 留言(0) 人氣()

'連線錯誤訊息

[Login Failed.  Check for valid user ID, server name and password  Native Error code: 4002]

解決方式:

加上[Persist Security Info=True]

<addname="ConnectionString"connectionString="Provider=Sybase.ASEOLEDBProvider.2;Server Name=DB;User ID=AUTO;Password=666;Initial Catalog=TWN;Persist Security Info=True"providerName="System.Data.OleDb"/>

M 發表在 痞客邦 留言(0) 人氣()

SQL-Server


Access


Case When Sex='1' Then 'G'


Else 'M' End


IIF(Sex='1','G','M')

M 發表在 痞客邦 留言(0) 人氣()

------------------------------[VBA程式碼]---------------------------------

Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long

'讀取INI檔

Dim ret As Long

Dim buff As String

M 發表在 痞客邦 留言(0) 人氣()

'找尋目前檔案路徑

Dim FullPath As Object

Dim CurrentProject As Object

Dim Path As Object

FullPath = CurrentDb.Name

M 發表在 痞客邦 留言(0) 人氣()

'使用VBA建立一文字檔

Private Sub CommandButton2_Click()

  Dim otfile As String

  otfile = "d:\test.csv"

  Open otfile For Output As #1

M 發表在 痞客邦 留言(0) 人氣()

<script src="https://gist.github.com/michaelctwk/a80b3983812b77ea23e7.js"></script>

M 發表在 痞客邦 留言(0) 人氣()

1 2 3
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。