in access i am doing this:
insert into accounts_changes
(select *
from accounts
where [Agency Code]
in (select * from tableimport))
it says that it doesnt like this INSERT statement
update:
sSql = "insert into accounts_changes (select * from Accounts where [Agency Code] in (select [Agency Code] from tableimport))"
i did...
what's faster?
DELETE * FROM table_name;
or
DELETE * FROM table_name where 1=1;
why?
does truncate table work in access?
...
Hi there,
I have an excel spreadsheet that contains the primarky-key/id value for a record in a table in an access database.
I would like to export specific data from certain cells in the spreadsheet to certain fields in the corresponding record in the table.
Is this possible, any help would be greatly appreciated.
Many thanks
Noe...
How to specify blob type in MS Access? I have office 2007 installed. I am using jdbc, but this should not matter for the SQL query I am passing. Tried to pass a length to it, or FILE type, did not help.
CREATE TABLE mytable (
[integer] INTEGER not null,
[string] VARCHAR (255),
[datetime] DATETIME,
[boolean] BIT,
[char] CHA...
Fairly new to Access and trying to do something that seems simple, but may be very complex. I want to create a database of projects, each project has several phases (ie proposal, marketing, etc) and that will allow for multiple employees to work on a single project. Ie Bob and John are working on project number 102. From here, i would...
Hi am populating the data from MS Access By Using VBA i am using below mentioned code.if i am run the same code in MS 2007 then It run properly but if i am run the same code in MS 2003 it gives the "General ODBC Error" how to solve this problem Any help would be appreciated!!
Thanks in advance
Sub Button2_Click()
Dim varConnection As S...
If I use RecordsAffected with CurrentDb.Execute, it always returns 0. If I first make a instance of a Database object it works properly. Why?
Like this:
Dim Db As Database
Set Db = CurrentDb
Db.Execute "DELETE * FROM [Samples] WHERE Sample=5"
If Db.RecordsAffected = 0 Then
MsgBox "Error"
End If
Instead of:
CurrentDb.Execute "DELE...
I use the DAO method Execute to delete some records. If this fails this is clear by checking RecordsAffected (it will be 0). But is it possible to get the error message (for instance, to log or to show to the user)? I've try to delete the records by hand in the Table grid I get a clear dialog message, e.g. "The record cannot be deleted o...
Hi,
I have the following table:
Table Parents with columns ID and FullName. ID is a primary key of type Auto-Number.
Table Children with columns ID, ParentID and FullName. ID is a primary key of type Auto-Number. ParentID is of type Number.
I want to use the following query to build a "cascade deletion" so that when a parent is del...
I'm trying to create a query, that will calculate sum of products on invoice. I have 3 tables :
Product (with product's price)
Invoice (with invoice id)
Products on invoice (with invoice id, product id and number of particular products)
So in my query I take invoice_id (from invoice), price (from product),number of products sold an...
If I search and replace text in a column with null values under XP it's fine. Vista won't accept null as a value.
...
what is the proper way of doing the following:
getting DATE as user input
running a query
generating a report that uses the query
this is the solution i was thinking:
have a form that takes user input
run the query
open the report
what is the correct way of doing this>?
...
i have a button and in the click event i have this code:
DoCmd.OpenReport "All_Ones"
when i click it, for some reason the report starts to print! why is this?
...
i have a report that is attached to a query
i want to display the contents of a query. there are three columns. i made a list box but it looks weird:
i dont want the scroll bars, i just need the three fields from a query to be displayed regularly just as they would be in a spread sheet or grid
...
I have a simple form showing products from my database. Each product has a foreign key to manufacturer_id . I would like to filter my form by manufacturer_id instead of default product_id. How I can do that ? I know I must create a macro. Also I've already created a query, that takes manufacturer's name as argument and returns manufactur...
thanks to hansup i have a bunch of fields on a report, i would like to center the enter block of controls. how do i do it?
...
All my (home) CF learning has so far been done using Access as a database, and as far as the DB goes I "get it". There's no database server, and no need to log on to the database or anything, and setting up table relationships is easy and visual. Oh and its essentially free to deploy.
However, I'm now working on an application that's li...
Hey im new to database design and having trouble trying to figure this one out. I have two tables Team and Fixtures. Team has rows of football teams and Fixture has 2 of those football teams in each row (home and away team). I want to link team id to home_team and away_team but it doesnt allow me to. Please tell me how i can solve this.
...
how to check how many primary key, composite key in existing table using Visual basic 6.0 and ms access as a database?
...
in vba how do i get a list of all the files with a specific extension in a specific directory?
i am unable to do application.filesearch, because i am using excel 2007
...