Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8255809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:39:07+00:00 2026-06-08T01:39:07+00:00

I have a report that gets updated every week that needs pushed out to

  • 0

I have a report that gets updated every week that needs pushed out to 30+ PC’s and the number is rising each week. I am trying to figure out how to take an Access Database and push the files out from a location on our server to all of each of those PC’s but what I can’t wrap my head around is how to do it. I was going to use a copy command and then use the value of the PC ID in a string and enter it into the file paths. This is a little bit more advanced than I am used to working with. Here’s what I have so far:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'database1DataSet1.PCID_List' table. You can move, or remove it, as needed.
            this.pCID_ListTableAdapter.Fill(this.database1DataSet1.PCID_List);

        }

        private void button_Close_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        static void button_Run_Click(object sender, EventArgs e)
        {
            string reportLocationCopy = @"Location TBD";
            string repLoc = @"Location TBD";
            if (File.Exists(repLoc))
            {
                // If file already exists in destination, delete it
                if (File.Exists(reportLocationCopy))
                    File.Delete(reportLocationCopy);
                File.Copy(repLoc, reportLocationCopy);
            }
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:39:10+00:00Added an answer on June 8, 2026 at 1:39 am

    What I would do is this:

    Open a database connection that selects your required information. Then use a sqldata adapter/datatable to draw the number of rows. Then I would write a foreach statement that uses these PCs and sends the updated file. So off the top of my head…

     //select query here and your connectionstring
     //then fill table as seen below
     SqlDataAdapter sDA = new SqlDataAdapter(query, connectionString);
     DataTable table = new DataTable();
     sDA.Fill(table);
    
     foreach (DataRow row in table.Rows)
     {
        string pc = (row["PCs"].ToString());
         //send files
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a report that gets week-ending figures for a given account number.
I have a crystal report that gets ran several hundred times from a C#
I have a report that I run from a system once a week, and
I have a crystal report that gets its data from one stored procedure, this
I have a simple collection that gets updated in real-time. The data is displayed
I have chart inside a report in Microsoft Access 2010 that gets its RecordSource
I have a report that is getting info from bsis, bsas, bsid, bsad, vbrk,
I have a report that is basically a form with multiple empty fields and
I have a report that I'm exporting to PDF using the VS2008 version of
I have a report that is returning a one data field to a tablix

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.