"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access "Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
Go Back  Xtreme Visual Basic Talk > > > "Input Mask" as password with code in MS access


Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2009, 03:11 PM
Shadow31o Shadow31o is offline
Newcomer
 
Join Date: Nov 2009
Posts: 2
Default "Input Mask" as password with code in MS access


ok...so I have bee searching around, looking everywhere possible with no luck

What I am trying to do is change a tables Input Mask in MS access to a password field with Visual Basic (2008). The code I am using (below) creates a new table with in an already created access document. What I need to do is be able to change the column (in this case, "Name") to have a Password Input Mask when the new table is being created.

--I am good with visual basic...small knowledge of databases and SQL statements

Thanks for any help

Code:
    Dim oConn As OleDbConnection
        Dim oComm As OleDbCommand
        Dim oConnect, oQuery As String

        oConnect = strConnection

        oQuery = "CREATE TABLE AccessTest (ID Counter," & _
                "Name TEXT(50) NOT NULL," & _
                "PRIMARY KEY(ID))"



        oConn = New OleDbConnection(oConnect)
        oComm = New OleDbCommand(oQuery, oConn)

        Try
            oConn.Open()

            oComm.ExecuteNonQuery()

            oConn.Close()
        Catch ex As OleDb.OleDbException
        Catch ex As Exception
            MsgBox(ex.Message & vbCrLf & ex.StackTrace)

        Finally
            If Not (oConn Is Nothing) Then
                oComm.Dispose()
                oComm = Nothing
            End If
        End Try
Reply With Quote
Reply

Tags
access, input, mask


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access "Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access "Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
 
"Input Mask" as password with code in MS access
"Input Mask" as password with code in MS access
 
-->