Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default transfering from Excel to Access

I work in a real estae brokerage firm which relies heavily on Excel.
Currently, we have maxed out spreadsheets which we are looking to
transfer into Access. How can we do so efficiently and is that even
feasible?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default transfering from Excel to Access

I an new at this but This site help me to transfer excel spreadsheet to access

http://www.exceltip.com/se/subtotal.html

Sub ADOFromExcelToAccess()
' exports data from the active worksheet to a table in an Access database
' this procedure must be edited before use
Dim cn As ADODB.Connection, rs As ADODB.Recordset, r As Long
' connect to the Access database
Set cn = New ADODB.Connection
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:\FolderName\DataBaseName.mdb;"
' open a recordset
Set rs = New ADODB.Recordset
rs.Open "TableName", cn, adOpenKeyset, adLockOptimistic, adCmdTable
' all records in a table
r = 3 ' the start row in the worksheet
Do While Len(Range("A" & r).Formula) 0
' repeat until first empty cell in column A
With rs
.AddNew ' create a new record
' add values to each field in the record
.Fields("FieldName1") = Range("A" & r).Value
.Fields("FieldName2") = Range("B" & r).Value
.Fields("FieldNameN") = Range("C" & r).Value
' add more fields if necessary...
.Update ' stores the new record
End With
r = r + 1 ' next row
Loop
rs.Close
Set rs = Nothing
cn.Close
Set cn = Nothing
End Sub


--
ca1358


"Nancy" wrote:

I work in a real estae brokerage firm which relies heavily on Excel.
Currently, we have maxed out spreadsheets which we are looking to
transfer into Access. How can we do so efficiently and is that even
feasible?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default transfering from Excel to Access

Hi Nancy,

Are you just looking to transfer the data into Access or re-deploy your
application into Access? If it is just transfer the data then the standard
table import/link functions very well if you have "clean" data. You can then
just build a simple front end in Excel to manage the data in Access.

Ozzy

"Nancy" wrote:

I work in a real estae brokerage firm which relies heavily on Excel.
Currently, we have maxed out spreadsheets which we are looking to
transfer into Access. How can we do so efficiently and is that even
feasible?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default transfering from Excel to Access

thanks Ozzy

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfering data/table from excell to access Tobes Excel Discussion (Misc queries) 1 November 12th 07 04:02 PM
HELP! Transfering files to Excel llkuhlj Excel Worksheet Functions 0 September 21st 06 10:37 PM
Transfering From Excel to Access [email protected] Excel Discussion (Misc queries) 1 November 29th 05 09:46 PM
Transfering Dos to Excel denny Excel Discussion (Misc queries) 4 September 20th 05 04:36 PM
transfering from excel to sql server robhargreaves Excel Discussion (Misc queries) 0 July 25th 05 07:45 PM


All times are GMT +1. The time now is 02:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"