473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Upload of database to ftp-server

Hi

I am building a simple database system in MS Access 2002 and would
like to create a command button that upon clicking transfers the
current mdb-file to an ftp-server. Is there a solution for this in MS
Access 2002 or do you have any other suggestions to solve this issue?

// Mattias
Nov 12 '05 #1
4 9287

Mattias,

On 30 Sep 2003 10:33:40 -0700, mn**@hotmail.com (Mattias) wrote in
comp.databases.ms-access:
I am building a simple database system in MS Access 2002 and would
like to create a command button that upon clicking transfers the
current mdb-file to an ftp-server. Is there a solution for this in MS
Access 2002 or do you have any other suggestions to solve this issue?


You're going to have a problem sending the file that is currently
executing code, no? You *could* do this but it would be very unwise.
It's never smart to make a copy of an in-use Access database, whether
the destination is on the local pc or a remote ftp server.

You really need that button to close the current file and then trigger
a transfer from a separate executable. Of course, it's hard to
understand why you would need to send the front-end to an ftp server
anyway. It's the back-end you'd typically want to send, and that's a
whole lot easier because you don't need to close the current
code-executing mdb to send the second file.

If you have the code and data in the same mdb, then setting up the ftp
transfer is the least of your problems. A more pressing one is to
establish a proper configuration for the application in the first
place.

Peter Miller
__________________________________________________ __________
PK Solutions -- Data Recovery for Microsoft Access/Jet/SQL
Free quotes, Guaranteed lowest prices and best results
www.pksolutions.com 1.800.987.7716 1.619.839.3900
Nov 12 '05 #2
Thanks for the answer! You're right about that it isn't so smart to
upload an in-use mdb-file. :) I never thought about that Access have
to be closed and the file have to be saved properly before uploading
it.

The reason for uploading the mdb-file is that the information in the
database is shown at a webpage. My thought is that the user input
information about for example rooms and reservations via a form in a
local Access mdb-file and then click on a button which upload the file
to an FTP-folder so the updated reservations are shown on the webpage.
I.E, I don't want the user to open an FTP-program every time he has
input new reservations. There must be an easier way for a user to
upload a specific file to an FTP-server? Do you have any suggestions
on how to do this as easy as possible for the user?

Btw, I don't really understand what you meant by front-end and
back-end in this case.

/Mattias, Sweden
Peter Miller <pm*****@pksolutions.com> wrote in message news:<dj********************************@4ax.com>. ..
Mattias,

On 30 Sep 2003 10:33:40 -0700, mn**@hotmail.com (Mattias) wrote in
comp.databases.ms-access:
I am building a simple database system in MS Access 2002 and would
like to create a command button that upon clicking transfers the
current mdb-file to an ftp-server. Is there a solution for this in MS
Access 2002 or do you have any other suggestions to solve this issue?


You're going to have a problem sending the file that is currently
executing code, no? You *could* do this but it would be very unwise.
It's never smart to make a copy of an in-use Access database, whether
the destination is on the local pc or a remote ftp server.

You really need that button to close the current file and then trigger
a transfer from a separate executable. Of course, it's hard to
understand why you would need to send the front-end to an ftp server
anyway. It's the back-end you'd typically want to send, and that's a
whole lot easier because you don't need to close the current
code-executing mdb to send the second file.

If you have the code and data in the same mdb, then setting up the ftp
transfer is the least of your problems. A more pressing one is to
establish a proper configuration for the application in the first
place.

Peter Miller
__________________________________________________ __________
PK Solutions -- Data Recovery for Microsoft Access/Jet/SQL
Free quotes, Guaranteed lowest prices and best results
www.pksolutions.com 1.800.987.7716 1.619.839.3900

Nov 12 '05 #3

<Snip>

Btw, I don't really understand what you meant by front-end and
back-end in this case.

A database should be split into 2 parts; the user interface (front-end) and
the data (back-end). The back-end only has tables where all the data is
stored. The front-end holds all the queries, forms, reports etc. and has
linked tables to the back-end. In Access there is a wizard that will split
the database for you, in A2000 it's under Tools>Database Utilities>Database
Splitter.

One of the advantages of splitting the database is so that the data can be
stored in one location i.e. on a server or dedicated desktop, and all the
users have their own copies of the front-end on their PCs all linked to the
back-end. This way you can make changes to the forms etc and place this new
copy of the front-end on everybody's PCs without being too concerned about
destroying any data.

I'm not too familiar with web DBs but wouldn't you just upload the data file
(back-end) because the web page has been designed around that table
structure.

Stewart
Nov 12 '05 #4
Thanks for the explanation of front- and back-end and how to split the
Access database file, Stewart. But the main question remains, I.E how
to be able to upload/transfer the mdb-file to the FTP-folder
(preferably from the Access form) without opening an FTP-program. It
would be great if it's possible.

/Mattias

"Stewart Allen" <sa****@REMOVETHISwave.co.nz> wrote in message news:<bl**********@news.wave.co.nz>...
<Snip>

Btw, I don't really understand what you meant by front-end and
back-end in this case.

A database should be split into 2 parts; the user interface (front-end) and
the data (back-end). The back-end only has tables where all the data is
stored. The front-end holds all the queries, forms, reports etc. and has
linked tables to the back-end. In Access there is a wizard that will split
the database for you, in A2000 it's under Tools>Database Utilities>Database
Splitter.

One of the advantages of splitting the database is so that the data can be
stored in one location i.e. on a server or dedicated desktop, and all the
users have their own copies of the front-end on their PCs all linked to the
back-end. This way you can make changes to the forms etc and place this new
copy of the front-end on everybody's PCs without being too concerned about
destroying any data.

I'm not too familiar with web DBs but wouldn't you just upload the data file
(back-end) because the web page has been designed around that table
structure.

Stewart

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: pdav | last post by:
Hi! Is there any solution to create a directory with one script with mkdir(), and then write a file (or move an uploaded file) in this directory with another script? The problem is, that the...
5
by: Thomas Brooks | last post by:
Hi there.... I have an ASP routine that I'm writing which updates an Access database with a user name, the file name, etc. all done through parameter processing and SQL functions. I do not...
5
by: RayAll | last post by:
I am using HTTP to upload files to a database ,I'm just curious if I can do it through FTP too and what would be the advantages and disadvantages of these two method? Thanks
5
by: Sundar.k | last post by:
i am using a html file control for my asp.net site but as we know we cant manage with this control for files with large sizes so can i use ftp instead in asp.net if yes how?? pls Reply as...
3
by: Almad | last post by:
Hello, I feel ashamed, but my google-fu betrayed me again. How do I escape filenames when using ftplib? I'd like to download it and upload on ftp again... toDown = self.ftpMaster.nlst() for...
6
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 with Apahce 2.2 on Fedora Core 5 Linux. I'm having trouble figuring out why an ftp_put call is failing. Is there a way I can get an exact reason other than checking...
2
by: tabu5in | last post by:
I have faced a big problem, when i was upload 800mb file using PHP. it does not works propperly. Please help me. if possible then please send me the source code.
0
by: Shanthini Ganesh | last post by:
HI. Any One already fix this following problem? I have to upload a swf banner for my site at runtime. I have tried with FTPwebrequest class. The complete code here.. btnUpload_click() { string...
6
by: Laphan | last post by:
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload gifs, jpgs, pdfs and docs to their site for the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.