Sub GetMyData()
Dim cn As New ADODB.Connection
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\josh\Investment.mdb;User id=admin;"
cn.Open
Dim cmd As New ADODB.Command
Set cmd.ActiveConnection = cn
'cmd.CommandText = "Delete * From Clients Where FirstName='" & Range("E2") & "'"
cmd.CommandText = "Update Clients Set FirstName='John' Where SSN='111111111'"
cmd.Execute
Exit Sub
Dim rs As ADODB.Recordset
Set rs = cmd.Execute
Dim I As Integer
I = 1
While Not rs.EOF
Range("A" & I).FormulaR1C1 = rs("FirstName")
Range("B" & I).FormulaR1C1 = rs("LastName")
I = I + 1
rs.MoveNext
Wend
End Sub
Wednesday, December 3, 2008
Connecting to an Access Database from Excel Using VBA
Posted by
joshwaxman
at
5:18 PM
0
comments
Wednesday, November 5, 2008
Circular References In Excel, Pt 2
4) Circular References In Excel, part 4
5) Circular References In Excel, part 5
6) Circular References In Excel, part 6
7) Circular References In Excel, part 7
Posted by
joshwaxman
at
1:01 AM
0
comments
Circular References In Excel, Pt 1
Take-home Test to be posted later...
1: Circular References in Excel part 1:
1: Circular References in Excel part 2:
3: Circular References in Excel part 3:
Posted by
joshwaxman
at
1:00 AM
0
comments
Wednesday, October 29, 2008
A Homework
Ch 17, do the Progress towards a goal, and the Gantt chart.
Posted by
joshwaxman
at
4:21 PM
0
comments
Saturday, October 11, 2008
Tuesday, October 7, 2008
Take home midterm
is still in development. Sorry.
:(
Check back later.
Posted by
joshwaxman
at
8:42 PM
0
comments
Monday, October 6, 2008
Schedule for coming weeks
Wednesday, Oct 8 -- no class
Monday, Oct 13 -- Columbus Day, no class
Tuesday, Oct 14 -- Monday schedule, but even so, no class
Wednesday, Oct 15 - no class
Monday, Oct 20 -- no class
Wednesday, Oct 22 -- no lab, but there will be lecture. (at 7:30 PM-8:20 PM)
Monday, Oct 27 -- there will be class
Posted by
joshwaxman
at
2:18 PM
0
comments