|
-
Aug 16th, 2004, 07:27 AM
#1
Thread Starter
Fanatic Member
Import / Export data
I am currently trying to import and export data to some external file that preferably is made as required but I want to use SQL if possible to read it (and make it would be nice).
I am useing Access 2000 and some PCs may use 2003 any ideas / help / code snippits?
-
Aug 16th, 2004, 10:32 AM
#2
Search the forums for other posts I made :
Functions to read up on:
Open <filename> for <type of open> as <channel>
Close <channel>
Print #<channel>,<string>
Line input #<channel>,<stringbuffer>
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Aug 16th, 2004, 10:37 AM
#3
Thread Starter
Fanatic Member
Thanks.
I've been fishing about and came up with this:
VB Code:
Private Sub MakeFile(CalledThis)
'This sub is called to create an mdb file to store the data in.
Dim AccessApp As Access.Application
On Error GoTo SameName
Set AccessApp = New Access.Application
With AccessApp
.NewCurrentDatabase CalledThis
End With
GoTo SkipThis
SameName:
If Err.Number = 7865 Then
MsgBox "ALERT: There is already a file with the name: " & vbCrLf & """" & CalledThis & """" & vbCrLf & "and the system is trying to use it." & vbCrLf & vbCrLf & "If this file is important please move it now.", vbCritical, "Name error"
End If
SkipThis:
End Sub
Which has worked nicely.
however the import section has me stuck now... but it's a SQL issue.
-
Aug 16th, 2004, 10:51 AM
#4
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|