Block The Colums Width

Sep 25, 2006

I have a form displayed as data sheet, how can I block the column so that the final user will not modify the width of the columns?

M

View Replies


ADVERTISEMENT

Values From Different Colums....

Feb 19, 2008

Hi Gurus,
Here's my situation. I have three columns in Access:
Attribute Name, DateValue, CharValue.
I wish to create a make table query which does the following:
If Attribute Name = 'approved_date' then take the value from DateValue Column and populate it in a New table 'new'.
but if the
Attribute Name = 'description' the take the value from CharValue column and populate it in the same table 'new' in a different column. Please help, how to achieve this.

Thanks,
Kon

View 1 Replies View Related

How To Add Value To Blank Colums

Jul 12, 2005

I have a table which has a column and some of them are filled and some are blank. I want to fill the blank ones with the previous values, how do I do this. Thanks for any help..

View 4 Replies View Related

Rows To Colums

Jun 29, 2007

OK, here we go...... Is there a way to convert multiple rows to a single record. For example:

Rec# Existing Data
001 | 1000
002 | 2001
003 | 3252
004 | 6573
005 | 8983
006 | 9897

Is there a way to put this all in one record, like this:

Rec# . 1st# . 2nd# . 3rd# . 4th# . 5th# . 6th#
001 | 1000 | 2001 | 3252 | 6573 | 8983 | 9897

And can you do this from the query design view?

Just curious.

View 4 Replies View Related

Hide Colums Without Data

Jun 10, 2006

Is there a way to hide a column in a query that does not have any data in it?

I have tables that are populated with YES/NO boxes and I only want to bring back the information for fields that are YES. Currently, the queries run and bring back all fields.

Each query will only have 1 result as they are limited by the primary key.


Thanks!

View 1 Replies View Related

Merge Colums In A Query

Jan 30, 2008

I am making this harder than it has to be i'm sure. I had a previous post of auto-texting a field, well why can't I just take two fields I have, such as the ID field which is an autonumber field and combine that with a type field that I have which is D.

If I could merge this in a query, wouldn't it give me the results as D01, D02, etc?

I couldn't find anything helpful online, one side said do the following.

SELECT receivables2.type+receivables2.ID
FROM receivables2;

Only I get errors.

I also tried this.

SELECT merge(receivables2.type; receivables2.ID);
FROM receivables2;

But it says merge is an invalid expression.

Could someone please help?

View 6 Replies View Related

Summin Colums - Urgent

Nov 14, 2006

hi all

i am adding colums like

Col_1 + Col_2 + col_3 + ...so on

now when a field is empty/null there is error in result

how to overcome this please help

i am adding colums ( not SUM(col_1) )

thanks in advance

NMK

View 1 Replies View Related

Averages From Multiple Colums With Ignored Values

Feb 15, 2007

I have a table containing about 120 records of 40 fields containing integer values. The values are 0 (for 'no experience'), 1 - 5 (for evaluation of experience) and 9 (for question not answered). I would like to generate a row of averages for the 40 columns.

Access includes the '0's when using the Avg function. (So 1,0,3,0,1,4 yields 1.5 (1+0+3+0+1+4 / 6) rather than the accurate 2.25 (1+0+3+1+4 / 4)). I can tackle this in two ways: I either convert all zero's to NULLs, as Access will not count NULL in an Avg function call, or I can do each column in a seperate query using a WHERE clause. I also have the problem of screening out the 9's. I'm reluctant to create 40 queries and then another to amalgamate the results as this seems a very silly way to solve this problem. I cannot convert both the zeroes AND the 9's to NULL as to do so would lose valuable data.

Can anyone suggest how I can obtain a full row of averages for the 40 fields, ignoring 0's and 9's?

View 10 Replies View Related

Empty Crosstab Colums Killing Access 2007

Jul 25, 2007

I created a fixed header cross tab query that totals up how many photos of each size there is in an order. I wrote some visual basic code to total up the price (kind of complex with the different packages) but any orders without at least one of every size photo completely locks up Access. The following is the code:


Private Sub Text66_DblClick(Cancel As Integer)
Dim Units
Dim UnitsCache
Dim PackagesCache
Dim F4x5Cache
Dim F5x7Cache
Dim E8x10Cache
Dim E11x14Cache
Dim S16x21Cache
Dim T21x24Cache
Dim WalletsCache
Dim T4x5
Dim T5x7
Dim T8x10
Dim T11x14
Dim T16x21
Dim T21x24
Dim TWallets

If [4x5] = Null Then
T4x5 = 1
Else
T4x5 = [4x5]
End If

If [5x7] = Null Then
T5x7 = 1
Else
T5x7 = [5x7]
End If

If [8x10] = Null Then
T8x10 = 1
Else
T8x10 = [8x10]
End If

If [11x14] = Null Then
T11x14 = 1
Else
T11x14 = [11x14]
End If

If [16x21] = Null Then
T16x21 = 1
Else
T16x21 = [16x21]
End If

If [21x24] = Null Then
T21x24 = 1
Else
T12x24 = [21x24]
End If

If [Wallets] = Null Then
TWallets = 1
Else
TWallets = [Wallets]
End If



F4x5Cache = T4x5
F5x7Cache = T5x7
E8x10Cache = T8x10
E11x14Cache = T11x14
S16x21Cache = T16x21
T21x24Cache = T21x24

WalletsCache = TWallets 8
UnitsCache = T8x10 + T5x7 2 + T4x5 4

Text58 = 0
Text56 = " "
Text54 = " "
Text52 = " "

RerunPackages:
PackagesCache = "x"
If [T21x24Cache] > 0 And [WalletsCache] >= 2 And [UnitsCache] >= 4 Then
PackagesCache = "F"
[WalletsCache] = [WalletsCache] - 2
[UnitsCache] = [UnitsCache] - 4
[T21x24Cache] = [T21x24Cache] - 1
Text58 = Text58 + 439
GoTo FoundOne
End If

If [S16x21Cache] > 0 And [WalletsCache] >= 2 And [UnitsCache] >= 4 Then
PackagesCache = "E"
[WalletsCache] = [WalletsCache] - 2
[UnitsCache] = [UnitsCache] - 4
[S16x21Cache] = [S16x21Cache] - 1
Text58 = Text58 + 305
GoTo FoundOne
End If

If [E11x14Cache] > 0 And [WalletsCache] >= 1 And [UnitsCache] >= 3 Then
PackagesCache = "D"
[WalletsCache] = [WalletsCache] - 1
[UnitsCache] = [UnitsCache] - 3
[E11x14Cache] = [E11x14Cache] - 1
Text58 = Text58 + 236
GoTo FoundOne
End If

If [WalletsCache] >= 2 And [UnitsCache] >= 4 Then
PackagesCache = "C"
[WalletsCache] = [WalletsCache] - 2
[UnitsCache] = [UnitsCache] - 4
Text58 = Text58 + 169
GoTo FoundOne
End If

If [WalletsCache] >= 1 And [UnitsCache] >= 3 Then
PackagesCache = "B"
[WalletsCache] = [WalletsCache] - 1
[UnitsCache] = [UnitsCache] - 3
Text58 = Text58 + 127
GoTo FoundOne
End If

If [WalletsCache] >= 1 And [UnitsCache] >= 2 Then
PackagesCache = "A"
[WalletsCache] = [WalletsCache] - 1
[UnitsCache] = [UnitsCache] - 2
Text58 = Text58 + 89
GoTo FoundOne
End If


FoundOne:
If PackagesCache <> "x" Then
If Text56 = " " Then
Text56 = PackagesCache
GoTo RerunPackages
ElseIf Text54 = " " Then
Text54 = PackagesCache
GoTo RerunPackages
ElseIf Text52 = " " Then
Text52 = PackagesCache
GoTo RerunPackages
End If
End If

UnitsCache = (T8x10 + T5x7 2 + T4x5 4) - UnitsCache
Do
If F4x5Cache < 4 Or UnitsCache = 0 Then
GoTo Skip4x5
End If
F4x5Cache = F4x5Cache - 4
UnitsCache = UnitsCache - 1
Loop
Skip4x5:
Do
If F5x7Cache < 2 Or UnitsCache = 0 Then
GoTo Skip5x7
End If
F5x7Cache = F5x7Cache - 2
UnitsCache = UnitsCache - 1
Loop
Skip5x7:
Do
If E8x10Cache < 1 Or UnitsCache = 0 Then
GoTo Skip8x10
End If
E8x10Cache = E8x10Cache - 1
UnitsCache = UnitsCache - 1
Loop
Skip8x10:

Text42 = 0
Redo:
If WalletsCache >= 5 Then
Text42 = [Text42] + 40
WalletsCache = [WalletsCache] - 5
GoTo Redo
End If
If WalletsCache = 4 Then
Text42 = [Text42] + 37
ElseIf WalletsCache = 3 Then
Text42 = [Text42] + 33
ElseIf WalletsCache = 2 Then
Text42 = [Text42] + 28
ElseIf WalletsCache = 1 Then
Text42 = [Text42] + 18
End If

Text28 = [F4x5Cache] * 12
Text30 = [F5x7Cache] * 25
Text32 = [E8x10Cache] * 40
Text34 = [E11x14Cache] * 110
Text36 = [S16x21Cache] * 155
Text38 = [T21x24Cache] * 249
Text40 = [25x31] * 362
Text44 = [16x20 Collage] * 210
Text46 = [Hard Cover w/Poetry] * 212
Text48 = [Hard Cover Book] * 98
Text50 = [Soft Cover Book] * 68

Text66 = Text28 + Text30 + Text32 + Text34 + Text36 + Text38 + Text40 + Text42 + Text44 + Text46 + Text48 + Text50 + Text58 - Text60

End Sub

View 1 Replies View Related

New Kid On The Block

Jul 13, 2005

Hi-

I am a self taught beginner in Access applications, so excuse my lack of expertise and terminology. From reading through this forum, I realize how far I have to go. I am not a techy by any means.

My question: I have a database that keeps track of the delinquent taxes for our Town. One of the reports is set up from 2 queries, then 2 related tables (beginning balances and payments made). The query calculates the balance of each account based on the beginning balance minus the payments made, and returns a report which shows each account balance, and then another query returns a report showing the total balance of all the accounts due for the date the report is generated.

I am wondering if there is a way to generate the balances due on a previous date. For example today is July 13, and I want to know what the balances were on July 1. Both tables have a date field- beginning balance has a start date, and the payments table has the dates of any payments.

Thanks in advance for any advice

View 6 Replies View Related

Block Go To The Next Record

Oct 18, 2005

What is the condition or how should I write a VB code to block the command go to last empty record? I have a form which has three buttons : Go to Previous Record, Go to Next Record and Add New Record. If I add a new record, and I press "Go to Next Record" well, it goes to the next empty record this means it does the same job as the "Go to Add New Record" button. How can I stop this happen?

Thanks,


Le

View 2 Replies View Related

Help Me Block Out The First 5-digits Of The SSN

Mar 13, 2006

I hope someone can help me. I have a report that prints out with the customers social security number on it. I need to change it so that only the last four digits of the SSN show, so it would like something like this XXX-XX-1234. I still want it to keep the full SSN in my Table though so we can search for the customers info with the SSN.

Is there a way that I can change it on the report only and not mess up any other forms that I have it on? Any help would be awesome!

View 4 Replies View Related

Address Block?

Oct 20, 2005

I have a form for all my clients, and currently there's a separate field for each part of the address. This does not make it easy to cut and paste an entire address block. I therefore created an unbound text box with the control source as:

=[FMT-NAME] & Chr(13) & Chr(10) & [Pref1] & Chr(13) & Chr(10) & [Pref2] & Chr(13) & Chr(10) & [PrefStrt] & Chr(13) & Chr(10) & [PrefCity] & ", " & [PrefState] & " " & [PrefZip]

This works ok, but if someone doesn't have anything in the fields [Pref1] or [Pref2] it leaves blank lines. Is there a way to code it so that I can have a complete address block? Thank you.

View 4 Replies View Related

Object Variable Or With Block Not Set...

Oct 12, 2004

I need to export a table as a text file but using the outputto or transfer text options do not produce the file format I want. If I export the file as Excel and then save it as text it's OK so I copied the following code to automate the procedure but get an error 'Object variable or With block variable not set.

Can anyone help?

Function Export()

Dim objExcel As Excel.Application

DoCmd.OutputTo acOutputTable, "MyTable", acFormatXLS, _
"c:dataMyExcelFile.xls", False

Set objExcel = Excel.Application

objExcel.ActiveWorkbook.SaveAs Filename:= _
"C:dataMyTextFile.txt", FileFormat:=xlText, _
CreateBackup:=False

objExcel.Quit
Set objExcel = Nothing
End Function

View 4 Replies View Related

Modules & VBA :: With Block Not Set Error

Jun 6, 2014

I have the below code that seemed to work until I tried to add the Loop to it. Now, every time it gets to the piece of the loop with the words Cells.Find, I get an error stating "With Block or Variable not set". I don't understand what the problem is. There is no "With Block" and the variable is set. How can I get this to work?

Code:
Function ClearColumns(xlWS As Object, ColumnRangeToClear As String)
xlWS.Range(ColumnRangeToClear).ClearContents
End Function
Public Function SendTQ2XLWbSheet(strTQName As String, strSheetName As String, Col As Integer, strFilePath As String, FirstCellStr As String)

[Code] .....

View 7 Replies View Related

Block A User To Login

Jul 1, 2013

I Have a table votes where a user is able to vote for a specific campaign, when the user votes his username and the date and time is logged in the table votes.

After the user voted he is logged out, then displaying the login form for the next user.

At the login form I want to check if a user already voted and if so he should not be able to login again. How can you do this ?

View 3 Replies View Related

Block Unauthorised Of Access Of Table

Jun 10, 2005

Hi all

Please help. one of my table is confidential data and I don't want people from opening from the table. Can I block people from opening but people who has password can only access this information.

eg. please see my enclosed attachment file and the table is cost. I don;t want people to see the data by click the table filename.

Hope someone can help me.

View 1 Replies View Related

Please Suggest How To Make Block Diagram

Feb 25, 2006

I am developing one software in access 2000. Now where i stuck up is ... Customer is asking for " process flow chart" (steps in block diagram). The requirement is as below..

For a pen there are below operations
1. moulding
2. cleaning
3. polishing
4.assembly

Now these flow of operation is to be presented in block diagram. Please suggest me how do I do this in accesss? (in form or report)...

View 3 Replies View Related

Block Addition Of Duplicte Records

Nov 8, 2004

I have a table which has a primary key of 3 fields. Each individual fields is defined with duplicates OK but I want to block a record being added where the primary key value exists already. How can this be done - the way I have set up the database Access does not automatically stop this as I thought it might. Do I need somw vb also??

View 14 Replies View Related

Block Shift Button When Starting Up Application

Apr 27, 2006

Hi, in some application I have made using a switchboard after starting up, I saw that when the user holds the shift button, this switchboard does not show up automatically. How can i fix it that the user cannot interfere holding this button?

View 2 Replies View Related

Mousewheel Block On Subform Only (for Fussy Users)

Sep 23, 2005

The Return of the dreaded mousewheel! I have used the fab Search option on this topic, but I feel I have some requirements that prohibit me using some of the options available. I need to allow its use for navigation of the mainform, but totally block it on the subforms, but with lots of conditions!

The database in question is NOT mine, and it's already built. If it were one of mine, I'd simply block the darn thing entirely or adopt some of the example databases I found (ghudsons was the kind of data verification I can dig, and a few in A97 format were good too).

I have to cater for workmates that are strangly fussy, rather lazy and totally unappreciative of order. Who would have though enforcing uniform entry of dates from 20 different ways (I counted) to one way, was such a contentious issue? OR, a BAD idea? Sigh.

As a result, I cannot be seen to have done ANYTHING to its function. So, I cannot have:
*Any form of "save" each record or blocks or anything like that
*Any form of validation boxes or message boxes popping up
*No dlls (if possible)
*In a nutshell, no extra effort - Type 'n' go - it has to be a secret
*And, I can't block the mousewheel from scrolling through personnel in the mainform.

I have to eliminate the RAMPANT creation of duplicate subentries (like, you're still on the one record in the main form, but if you're not paying attention and wheel in the subform, you flick over to the new row and type, and POW).

Am I dreaming? Is there some easy solution in form setup that I'm overlooking? (the problems of self-education, you are often unaware of some of the simplest little options). I aplogize if this solution has been presented before on the board, but it is likely I didn't not understand what I saw properly, or I felt it wasn't quite what I wanted. Thanks very much.

View 1 Replies View Related

General :: Building Address Block For Labels

Dec 4, 2012

My database contains business names and addresses in separate fields (name, address, city, zip code, state, country)

Now I have to build the address block for labels.

If there were just US addresses it would be easy but a business can be located in any country with the problem being
that countries require the block to be build in a specific way (order of city, state, zip code).

In some cases a particular section has to be upper case as well.

Of course I can build it manually in a memo field but the with chance of something easily going wrong I like to automate it.

It does mean the same info will be stored twice which is basically a no no.

I'm thinking of making a separate table with records for all possible layouts and use those as a source for a memo field in the business table. However I can't oversee if that would work alright or not.

Or should there be a way to generate the blocks on the fly?

View 9 Replies View Related

Column Width

May 11, 2006

Hi -

I have a form with a subform that i've displayed as a datasheet. I'm wondering if there is anyway to fix the column width so it cannot be changed when the form is open.

Thanks!

View 1 Replies View Related

Combobox Width

Dec 8, 2006

hi,

a simple 1,

ive got two columns in my combobox .... userID and name.

i want to hide the userID column and just show the name column? how do i do that?

the userID is the first column(to the left)

View 2 Replies View Related

Length & Width

Dec 2, 2005

I've notice a situation in a few databases. One is where we track sidewalk construction. There are two called fields LENGTH and WIDTH. In my report I have text box with the control source =[Length]*[Width]. However it returns some bogus number. If I change the field names to something else like Width1, it works fine.

Any ideas?
Thanks,
SKK

View 3 Replies View Related

General :: Block User Access To Tables / Queries?

Apr 24, 2015

Is there a way to securely block the access of user to tables/queries, else in Microsoft Access?

View 6 Replies View Related







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