Queries :: Make Only One Change In Mdb Access Database With Lot Of Rows

Nov 7, 2013

I need to make only one change in my mdb access database with lot of rows.For example, I have two columns: "num1" and "num2" with numbers and need to create new column (as a text) according the rule: num1 # num2....That means if the numbers in num1= 12 and num2= 1,3312, thenthe text in new column should be: 12 # 1,3312.

View Replies


ADVERTISEMENT

Insert All Rows To Access Database

Oct 6, 2012

I use this vba code to insert data in access database 2007. It's working for one row, but when I try to use for more rows and columns give me "Type mismatch".

Code:
Sub Simple_SQL_Insert_Data()
Dim cn As ADODB.Connection '* Connection String
Dim oCm As ADODB.Command '* Command Object
Dim oWS As Worksheet

[code]...

View 5 Replies View Related

Queries :: Return Multiple Rows From A Single Record In Database

Jul 16, 2014

For each record in my database, there are observation periods which are recorded in the format dd/mm/yyyy hh:mm:ss, titles as follows

1st Obs Start
1st Obs End
2nd Obs Start
2nd Obs End
3rd Obs Start
3rd Obs End.

I have been asked to create a query that will quickly show how many obervation periods commenced in a particular month. What I am trying to do is create a column that will be named Obs Start, and another, Obs End. For each record ID, this would then show as follows:

ID......Obs Start.............Obs End........
1....[1st Obs Start].....[1st Obs End]....
1....[2nd Obs Start]....[2nd Obs End]....
2....[1st Obs Start].....[1st Obs End]....
2....[2nd Obs Start]....[2nd Obs End]....
2....[3rd Obs Start].....[3rd Obs End]....
3....[1st Obs Start].....[1st Obs End]....
4....[1st Obs Start].....[1st Obs End]....

etc.

I could then quickly count how many obs periods started within the desired month.

View 14 Replies View Related

Modules & VBA :: Update Access Database (multiple Rows)

Jan 7, 2014

I have a table called "Mov" and its columns are:

Code:
Number | Link | Name | Status
1899 | htto://example.com/code1 | code1 | Done
2 | htto://example.com/code23455 | code23455 | Done
3 | htto://example.com/code2343 | code2343 | Done
13500 | htto://example.com/code234cv | code234cv | Deleted
220 | htto://example.com/code234cv | code234cv | Null
400 | htto://example.com/code234cv | code234cv | Null

So I want a way to update Status of my rows according to numbers list. For example I want to update Status column for multiple numbers to become Done .

Simply I want to update "Null status" to become "Done" according to its numbers according to this list

Code:
1234
53
546
767
2135
6657
43
34

Something like this

I tried "update query" but I don't know how to use criteria to solve this problem. In Excel I did that by "conditional formatting duplicates" -with my number list which I wanted to update - Then "sort by highlighted color" then "fill copy" the status with the value...

View 4 Replies View Related

Queries :: Subtracting Rows In Access

Dec 8, 2013

I have a query with years and sales column. I need to make a column that displays the difference in sales between years. My query is named "Qry" if that is needed. "Year" and "Sales" are the column titles if you need that for the SQL.

View 14 Replies View Related

How To Access Ms-Access WorkGroup Tables To Change Database Login Password

Apr 13, 2007

Hi!
This is Kishore, working on VB Project which is using MS-Access95 as backend.
Now, i want to change the Database login Password.
Could anyone guide me in this context.

Regards,
Kishore

View 4 Replies View Related

Queries :: Access 2007 - Merge Two Rows Into One

Apr 26, 2013

I am creating a query to use in a Word 2007 mail merge.

For simplicity, let's say the query has three fields:

schname for school name, role for staff role, and name for the staff member's name.

The current query shows:

SchoolA, Admin, Jerry Garcia
SchoolA, President, Bob Hope
SchoolB, Admin, Janet Jackson
SchoolB, President, Mae West

I would like a query that would show one line per school like so:

SchoolA, Jerry Garcia, Bob Hope
SchoolB, Janet Jackson, Mae West

I've looked at Allen Browne's ConCatRelated function and can pull up a list of all names in a field called Expr1001, but that doesn't seem to be what I need.

View 5 Replies View Related

How To Make Multi User Access Database

Jul 18, 2012

i have build a single user application in access 2010. now i want to build multi user application and want to deliver to end user.how can i make my all vba code safe from end users.

View 3 Replies View Related

Queries :: Concatenating Multiple Rows In Access 2010

Feb 11, 2015

I have a query that has multiple IDs and different information in numerous fields. For example:

ID Field1 Field2 Field3
1 x
1 m
1 b

I need to find a way to concatenate the data so that it shows the information like this:

ID Field1 Field2 Field3
1 x m b

I'm working in Access 2010.

Yes I know this isn't the best way to set up a database, but I'm trying to make fixes to an already existing database that I can't go back and change the way it is set up. I can only find work arounds to accomplish what I need.

View 2 Replies View Related

General :: Make Warning Pop Up When User Tries To Access Database?

Feb 5, 2013

How can I make a warning pop up when a user tries to access a database that another user is already in??

View 13 Replies View Related

Error When Opening Database - Cannot Access Data To Make Changes To Scripts

Feb 12, 2013

When I launch my Database file, it would normally run some scripts (I don't actually know what they do, the file is not used by me, only colleagues).

Instead i get this error:

The expression On Load you entered as the event property setting produced the following error: Object or class does not support the set of events.

When I click 'OK' another error appears:

The expression On Timer you entered as the even property setting produced the following error: Object or class does not support the set of events.

Once i click 'OK' on this error, another error sometimes occurs:

The expression MouseMove you entered as the even property setting produced the following error: Object or class does not support the set of events.

But strangely enough the third error doesn't occur every time i move the mouse.

After these errors have been closed, all i have is my 'form' with a loading bar. I cant access the actual database. Nor can i get into the Visual Basic to try and find the cause. This is happening to multiple clients of mine, and me personally.

Running Windows 7, Server 2008 (64bit), Windows 7 (64bit)
Running Access 2007 and Access 2010.

I have tried changing permissions on the file, this doesn't work.

View 2 Replies View Related

General :: Make One Row In Table A Become Row In B And Rows In C

Nov 7, 2012

I have an existing database being used for for order processing (normalized, working). The order table houses the general order info and a separate detail table holds 1 or more orderdetail records for each order in the order table, related by orderID.

A user has asked that I find a way to import her data into the system from an excel spreadsheet. She has individual columns for each type of order detail record, so for each "order" row, there may be 1 or more columns of "orderdetail"s that I will need to parse into the correct tables.

I imported the raw excel into a table, but I need to append that data into the order and orderdetail table rows (i.e. I have to create the order and orderdetail records that match every other record in the system).

It looks like I need to somehow perform a looped INSERT INTO [ORDER] (field1, field2....) VALUE (val1, val2) but there are those related detail records to contend with (the orderdetail table entries) which may be more than one insert....

Test set of data is attached.

View 5 Replies View Related

Change Primary Location Of Access Database?

Jun 3, 2013

I created a database that I want to move to a server for others to access. When they open it, it says invalid path. It's looking for my desktop. How do I get this whole database moved to a shared location on a server?

View 8 Replies View Related

Change Quantity To Rows

Feb 26, 2006

Im integrating a Scanpal Batch barcode scanner into my application, and need a little help with my label printing facility.

at the moment the scanner imports a list of barcodes and quantitys this is merged with my product table and results in a table something like this:

barcode | Description | price | quantity
123456 | my stuff | 9.99 | 7

i need a query to move this to my label printing however my print queue works like this

barcode | Description | price
123456 | my stuff | 9.99
123456 | my stuff | 9.99
123456 | my stuff | 9.99
123456 | my stuff | 9.99
123456 | my stuff | 9.99
123456 | my stuff | 9.99
123456 | my stuff | 9.99

can a query do this?

Thanks

View 4 Replies View Related

General :: How To Make Previous Rows Disabled In Subform

May 26, 2013

I want to disable the previous row in the subform the moment I do a new row to prevent the user from editing information other users put before. Is it possible.

View 4 Replies View Related

How To Make Total Rows In Query Permanently Visible

Aug 29, 2011

How do I make the 'total rows' in query permanently visible? Right now, every single time when I click on to my query, I will have to go to HOME---> RECORDS ---> TOTALS then the Total row will appear. And when I export that query, the TOTAL ROW is missing. how to make the total rows visible always?

View 4 Replies View Related

Modules & VBA :: Change Data In Rows To Columns

Apr 7, 2015

I am trying to change the data in my rows to columns...I have data as per the attached picture in columns B-I...I would like the rows to be pasted to columns as per columns M-Q...so row 1 ends up as the first lost of data in M-Q and row 2 ends up as the second lot of data.There are numerous rows in my actual file.

View 6 Replies View Related

Queries :: Calculating Daily Change In Access Query

Jan 21, 2015

I don't use Access too often but I'm trying to connect a table to some business intelligence software I use.

A. Date B. Price C.Ydayprice
01/01/2015 101.45
02/01/2015 104.70
03/01/2015 103.00

Simple stuff. Once I've connected to the table, I can easily do what I want with Field 'Price' and 'Ydayprice'. However, I can't calculate column C. All I want is row 2 to say 101.45, R3 to say 104.7 etc. I've tried various things but I don't have the knowledge to write the action I require. I don't want to calculate the change in Access either.

View 3 Replies View Related

Need To Make A Change In A Linked Table

Jun 16, 2005

This question will surely show my amateur Access skills... I have to add a field to a linked table. However, the table doesn't save my changes. Is there something I need to do before I make my change?

I get the error message "Table 'name' is a linked table with some properties that can't be modified. Do you want to open it anyway?

Any ideas? Thank you! :confused:

View 1 Replies View Related

Users Can Access Database But No Queries Or Buttons

Mar 20, 2006

I have an access database that is used as a front-end application to a sql server 2000 database. Users have adequate permissions to access database and functionalities but a few are receiving the following error message:

"Connection Failed. Invalid connection string attribute."

View 4 Replies View Related

Queries :: Access Database To Calculate Income Tax

Jun 22, 2013

Access database to calculate income tax?

I'd like to be able to input the amount I invoice each month into a table and it would calculate Vat and Income tax due.

I'm sure its been done many times before however I cant find any examples.

View 1 Replies View Related

Queries :: Creating Access Storage Database

Feb 5, 2014

i am busy with creating a access storage database and need to calculate the number of days a vehicle is in storage, i have a [date in] field and a [date out] field. i need to calculate if [date out] is empty to use today otherwise [date out] - [date in]

View 5 Replies View Related

Queries :: Converted Desktop Access Database To SQL Server

Dec 5, 2014

I have converted desktop Access database to SQL server. A medium sized app with 24 tables, 60 or so forms/subforms and about 120 queries. I created 2 split files, one containing the tables, and the other containing forms, queries, vba modules. I migrated the tables to SQL server using SSMA, and built an odbc connection for my front end. It works, except it is painfully slow. Its cos most of the recordsets that drive my front end are query based. And in many instances the queries are comprised of queries, not just tables.

Should i be creating my queries on the SQL server? Is that what people do when using Access front end with SQL server back end? Do away with Access queries? Or does the problem lie elsewhere? How do i network optimise my Access FE / SQL server BE?

View 10 Replies View Related

How To Share Access Database Including Forms / Queries

Jun 9, 2015

I have an Acess database (2013). This will be used by several people within one company, they don't have their own server. I would use SharePoint Online, but it seems to me, that you only can "export" the tables. The database I have is quite a complicated system, and it is neccessary to use all the Access tools - forms, reports, queries. Not tables only.

Another idea is to split the database and "store" the backend part (the tables) on Sharepoint (Office 365 online version). And all the users would have their own frontend (forms, queries...) on their own PC, linked to this backend. Would this work? Can everyone add some entries into the database this way? How does it "synchronize" then?

View 1 Replies View Related

Queries :: Sum Different Rows

May 3, 2013

I'm building a Bradford Scoring DB, everything is running smoothly apart from one niggle I would really like to get around and automate.Essentially, I'm hoping to run a difference sum query which is fine when it's on the same row, but the issue I'm having is that I'm trying to calculate this from another row, linked by name. This inturn will workout the difference between the two absence episodes i.e. it's been 80 days since their last absence end.

I did find a method which would view the previous AutoID, but this worked well for the whole table, but not within a query limited to name.The obvious workaround is to allow the team leaders to enter this manually, but this could be a/ open to small errors b/ mildly time consumingI, like most, work with people who want info NOW and with little effort.

View 4 Replies View Related

General :: How To Make Form Controls Change Size / Position As Form Is Resized

Jul 24, 2013

how to make my form controls change size / position as my form is resized / loaded on a computer with a different resolution. Several of the tutorials out there suggest putting code on the "on resize" property of the form. When I looked at the Northwind database to try to mimic their code however, it looks like they must be doing something different as there is no on resize code under the form properties and I was unable to find the code they do use.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved