473,385 Members | 1,356 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,385 software developers and data experts.

Create a Temp Table via VBA

I have an app with a Front End and a Back-End. My date field is
INV_DATE

I would like to copy all data with year(inv_date) 2005 to a temp
table in both, the front end & the back end.

How can I do this via VBA ?

Rgds,
Prakash.

Jul 31 '07 #1
2 11047
On Jul 31, 6:32 am, prakashwadhw...@gmail.com wrote:
I have an app with a Front End and a Back-End. My date field is
INV_DATE

I would like to copy all data with year(inv_date) 2005 to a temp
table in both, the front end & the back end.

How can I do this via VBA ?

Rgds,
Prakash.
Are your FrontEnd and BackEnd linked to each other? Otherwise you have
to use a reference (filename and location) to one.

Dim dbsCurrent As Database, dbsContacts As Database
Set dbsCurrent = CurrentDb
Set dbsContacts = DBEngine.Workspaces(0).OpenDatabase("C:
\Contacts.mdb")
>From here you may do as you please.
Jul 31 '07 #2

<pr*************@gmail.comwrote in message
news:11**********************@o61g2000hsh.googlegr oups.com...
>I have an app with a Front End and a Back-End. My date field is
INV_DATE

I would like to copy all data with year(inv_date) 2005 to a temp
table in both, the front end & the back end.

How can I do this via VBA ?
You might take a look at MVP Tony Toews' site,
http://www.granite.ab.ca/accsmstr.htm for a method which creates a
temporary database in which to create the temporary table. When you are
done with it, you can unlink, and delete it -- and not have to worry over
time about it bloating and having to be compacted and repaired.

I'm wondering why you might need a temporary table in the back end _and_ the
front end. Perhaps if you'd tell us what you are trying to accomplish,
instead of the way you think you might accomplish it, someone could offer
useful suggestions.

If you use Tony's technique, you'll link both the table in the "temporary
back end database" and the table in the "temporary front end database."

Larry Linson
Microsoft Access MVP
Aug 1 '07 #3

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

Similar topics

6
by: dev | last post by:
how create a temp table as a copy of a existing table and then update1 field and insert the hole temp table back in the existing table? please any help? if i have 10 fields in 1 record and...
7
by: Galina | last post by:
Hello I am going to copy a data from MS Access table into Oracle table. One of fields is memo type and data in this field range from 1 character to 551 long string. Do I need to create a field...
1
by: Sergio | last post by:
Hi all! I have a problem with a temp table. I start creating my table: bdsqlado.execute ("CREATE TABLE #MyTable ...") There is no error. The sql string has been tested and when it's executed...
1
by: Liya | last post by:
I'm trying to create a temp table in the stored procedure. the syntex is the following: create st_proc variables declared if something >0 create temp table #Table1
3
by: Wiggy | last post by:
Hi, It's probably easiest if I describe what I'm trying to do: I have several tables I want to base a query on. In addition I have some dynamic data that I want to join against that consists...
8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
4
by: M Bourgon | last post by:
I have two SPs, call them Daily and Weekly. Weekly will always call Daily, but Daily can run on its own. I currently use a global temp table because certain things I do with it won't work with a...
2
by: Krustov | last post by:
The question of how to create thumbnails with clickable links gets asked on this newsgroup every so often - like clock work . Just really posing this script here for google to archive it & so...
2
by: lenygold via DBMonster.com | last post by:
Hi everybody! I have a UDF. It is working fine. But when i try apply the same UDF to a view it is not working. CREATE VIEW SSN_SORTED AS WITH...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.