Code Help Easy Fix For The Gurus

Apr 19, 2006

the following works great, when I have text in the field. I want to do, is just the opposite

If Nz(Me.NTP) Then
Me.Label159.Visible = Not Me.Label159.Visible
Else
Me.Label159.Visible = True
End If
end sub

View Replies


ADVERTISEMENT

On Current Record Count - Easy 4 U Gurus

Mar 9, 2006

I havent used Access for sometime so please bear with me.

I have a text box called txt18 on a subform which is used to display the total no of records within subfrmPSR. I have used =Count() in the control source.

My 2nd text field called txt17 (unbound) I would like it to count as users use the move next and previous buttom to navigate thru the record. As they move through the records I would like txt17 field to count from the first record to the current record in the set.

I imagine that a piece of code will need to go in OnCurrent of the subform referring to txt17.

I.e
txt17 txt18
2 of 6

txt17 will be the only field that changes.


Any help would be appreciated.

View 3 Replies View Related

Quick Easy Question, RE Error With Simple Code

May 24, 2007

hiya every1, (access 2k3)

quick easy question, as im a noob when it comes to coding/vb.

Within our company database we have the usual timesheet table. With the table I have create a query (called "dailytimeforkeith") that gives me the sum of time for an individual person for one day (in fact its the previous day). What I have done then is created a form (called "keithyesterdaytime") that shows this query entry (called "sumoftimespent").

Each user has a different database screen logon and forms that are present when they log in. So what I then done is on one of these forms the load up, i attached this:

Private Sub Employee_Enter()

Me.Employee = User.FirstName


If Me.Employee = "Keith" Then

Dim stdocname As String

stdocname = "keithyesterdaytime"

DoCmd.OpenForm stdocname, , , acAdd

............



then on "keithyesterdaytime" opening the following code runs
------------------------------------------------------------

Private Sub Form_Open(Cancel As Integer)

Dim internal1 As Integer

internal1 = Forms!keithyesterdaytime.SumOfTimeSpent

If internal1 < 6 Then

DoCmd.Close

MsgBox " Less than 6 hours have been entered " & Chr(13) & " into your timesheet for yesterday. ", vbCritical, Title1

Else

DoCmd.Close

End If

End Sub
-------------------------------------------------------

Whenever i logon with the user keith, i get the following error 'runtime error 2427: You entered an expression that has no value.

If I open the form "keithyesterdaytime" on its own, the code works and i dont get an error.


What have i done wrong, and be gently. HEHEHE. Also is there any easy way i can do this instead of having to create the the form "keithyesterdaytime"

View 2 Replies View Related

Attn GURUS - Crosstab/Maketable Help

Feb 21, 2008

I have a recordset with 335000+ rows. The database contains 8 different columns. I have a series of queries that validate each column element. I then use a UNION query to combine the mini queries because the validation results is the same, as well as the query structure. The validation results can either be, "PASSED, FAILED, or DROPPED".

I am trying to create a crosstab query to display the COUNT of each occurence of validation, per query. The problem is, for each query (row) in the cross tab, the total of each query is not the same, and is less than 335000 rows. One query could show 319000, another 323000... I don't know why this is doing it, because if I run each query separately, it says each one contains 335000 rows, and each row has a validation result.

Any suggestions?

View 2 Replies View Related

Should Be Easy

Jun 1, 2005

I want to have code that disables fields based on the value of the contents of one of the fields. I wrote this code which goes on and on but it doesn't work. Can someone help?

Private Sub Form_Open(Cancel As Integer)

Dim Item_Number As String

If Me.Item_Number = "300123C" Then
Me.Batch_Lot_Number.Enabled = False
Me.Issue_Date.Enabled = False
Me.Production_to_BPT.Enabled = True

Elseif blah blah blah

else blah


Endif

End sub

View 3 Replies View Related

I Know This Must Be Easy!

Mar 22, 2005

I don't normally work in access so I am sure I am asking a really easy question.

I have a table that is connected to a form where users enter survey data. Currently they have a drop down form to mark the responses to the survey as "Fully Completed", "Partly Completed", etc.

On the table I want to add the text "Awaiting Completion" to all those without any entry so that we can find out how many are left to do.

I can filter the table to give me the correct records, and assumed I could paste the text directly into the column (as with Excel).

Can anyone please let me know how to update the column easily.

Thanks for your advice.

Chris

View 2 Replies View Related

Should Be An Easy One...I Think!

Mar 30, 2006

Warning - Complete newbie post!

Hi all,

I have 2 Access databases setup, each containing 1 table. Let's call them A and B. These two tables contain some of the same fields.

Table A is used for collecting new client registration info through our website and gets updated by SQL.

Table B is on a different server and is used for company newsletter mailings.

Table A is the one which is automatically being updated so I don't need to do anything with that table. Also, some fields in Table A are auto-incrementing numbers so we can differentiate a clients interest and provide a more informative newsletter for them specifically on their selected interest.

Whenever an entry in certain fields of Table A is made, I would like the same fields of Table B to be updated with that same information automatically. For example...

Client subscribes to our newsletter on our site and selects their interests, the email field now contains the subscribers email address and the various 'interest' fields contain a '1' telling us they are interested in that particular area of our business. As this takes place on Table A, it needs to be also replicated to Table B.

Surely this is possible, but how?

View 1 Replies View Related

This Is Probably Easy To Do

Apr 18, 2006

As I am an SQL novice I need some help

I have 3 tables

Table - Fields
SalesLedger - TransactionID, ProductID
Vouchers - TransactionID, Voucher_Ref
Products - ProductID, Product_Description

The Salesledger has fields TransactionID and ProductID

The Salesledger is linked to the Products table by the ProductID field

The SalesLedger is linked to the Voucher Table by the TransactionID field

How do I produce a query to list all the items in the Salesledger but if there is a Product in the Products Table matching the ProductID the Product details, and if there is a TransactronID in the Voucher Table list the VoucherRef.

At the moment, it only shows transactions if there is a corrosponding TransactionID in the Vouchers Table

Probably not explaned this at all well. I will try to elborate if required.

View 1 Replies View Related

Easy If You Know How

Jun 24, 2005

Hi all,

I am making a query which sorts birthdays into chronological order.

I have used the DatePart function to determine the month:

DatePart("m",[DATE OF BIRTH])

But I want to know how to display the month in CAPITAL LETTERS, i.e. instead of reading 1 it reads JANUARY

Thanks in advance

View 7 Replies View Related

Probably Easy To Do But.....

Feb 16, 2006

I have a list in Xcel of approximately 1100 client #'s that I have to match to our master list of 10000's.

I can create a query to pull these Clients, but I'd like it to only pull the 1100 requested. Is there a way to import an excel file to bump up against a query so that it only pulls the requested clients?

IE do I have to create a table and bring that data in then use them both in the query?

Sorry if this is a simple question, I'm just being thrown into the fire and have very little access background.

View 1 Replies View Related

Easy One...

Mar 2, 2006

To start: Running Office 20003. I have created a survey with Frontpages wizard. Basically It has a topic and the end user rates that topic on a scale of one to five like so:

1. Work Environment
a. I enjoy my work place. 12345
b. I think my office has a good reputation. 12345

1-5 are radial buttons. It takes the users input and stores it in an access database as im sure you all are aware. Looks kinda like this:

1a 1b 2a etc.
3 5 1

What i would like to do is this: When the users are done submitting i would like to go back and take results. I.e. we had this many users select option 3 for question 1a and we had _ number of users select option 2 for 1a, etc.
The thing is i was wondering if there was a way to create a query for it. I know i could just put =1 or =2 but that would require running 5 queries on each question.... not fun. Anyway, any help would be appreciated.

Thanks,

Viko

View 1 Replies View Related

An Easy One I Think ?

Mar 22, 2006

Hi - I think this can be quickly sorted.

I use the following code in my query to merge together my customers details to 1 field:

LeadName: [Title] & Space(1) & [FirstName] & Space(1) & [LastName]

I want to do it for their address, what do i use instead if SPACE so that i get a NEW LINE each time rather than1 space to the right?

Thankyou

View 1 Replies View Related

This Is Probably Easy To Do

Apr 18, 2006

As I am an SQL novice I need some help

I have 3 tables

Table - Fields
SalesLedger - TransactionID, ProductID
Vouchers - TransactionID, Voucher_Ref
Products - ProductID, Product_Description

The Salesledger has fields TransactionID and ProductID

The Salesledger is linked to the Products table by the ProductID field

The SalesLedger is linked to the Voucher Table by the TransactionID field

How do I produce a query to list all the items in the Salesledger but if there is a Product in the Products Table matching the ProductID the Product details, and if there is a TransactronID in the Voucher Table list the VoucherRef.

At the moment, it only shows transactions if there is a corrosponding TransactionID in the Vouchers Table

Probably not explaned this at all well. I will try to elborate if required.
Edit/Delete Message

View 3 Replies View Related

Probably Easy But I Don't Know

Dec 1, 2006

Hi all. I need to know if there is a way to show the last entry for a record. In my database there is a set of numbers i.e. 3000, 3001, 3002 etc which have multiple valuation figures with them i.e. 3000 could have valuation 1 £1000, valutaion 2 £1245. So as mention what i need is my query to show the last valuation entry for the selected reference number i.e. 3000 and valuation2 only.

Any ideas?

View 4 Replies View Related

This Should Be Easy???

Dec 28, 2007

Hello,

I dont know if my brain is not working today....but I have a query that is prompting for user input....if the user clicks cancel it shows "Action Failed" "Halt". How can I get this to just close when cancel is clicked?

Thanks

View 2 Replies View Related

Might Be Easy

Feb 21, 2008

Hello,

I working with different business groups who have vendors assigned to them. I have table of vendor names for each business group. I'm getting data from different sources with vendor names that are unlike table. example: ABC company, ABC. Even through these are different they are they same vendor. Is there a formula, criteria, etc. to pick these up? I will be updating the vendor table occastionally.


Thank you

View 4 Replies View Related

This Should Be Easy

Feb 18, 2005

i need to show a group of donators details in a report. i want to have one donator per report page, but at the moment its sticking three to a page.

any ideas???

View 1 Replies View Related

An Easy One For You

Jun 23, 2006

HI

I do not know what I have done but I am banging my head against the wall, I have three tables in this recruitment db im making and I have a problem that I know is so simple but is killing me off.

In one of the forms (add new vacancy) it has a drop down box that selects the name of the company from table called (company main) within the company main I have two columns (company) & (company no).

now back in the add new vacancy form I have a box that should collect the informtion of the company no whenever I select the company from the drop down list, but you guessed it, its not finding the information please help before i go mad.

View 2 Replies View Related

Easy One!

Dec 3, 2004

I think I have an easy one. When entering records in my table I would like the date to be automaticaly entered. If I use the Date() function the date changes with the system date, I would like it to remain as the orgingal date. How do I do that?

Thanks,

Greg

View 2 Replies View Related

Easy One For Somebody!

Aug 19, 2004

Hi all,


Quick Question:

I need to generate a query that pulls all the employees that ordered paper trays for their
workstation. The quantity of paper trays they ordered is the data for the field "paper trays". Some
people did not order any. How do I tell the query to pull all the employees that ordered and not to list
the employees who have no data in the field?

I need to print this report like now!!!

Thanks for your help!!!
Liz

View 2 Replies View Related

Probably Easy Question

May 24, 2005

Hey, I need to print a report on 11x17 paper. I cant seem to find in the page setup where I could change it to this. Is there a manual way to change it to 11x17. I've checked all the network printers around here under the page setup and none give me the option for 11x17, but I know you can print this size on our printers. Thanks.

View 4 Replies View Related

Easy Parameter Qry

Jun 15, 2005

Set Start & End Dates

I have a list box that lists the 52 week numbers of the year

week 1 being 26-03-2005 to 01-04-2005
week 2 being 02-04-2005 to 08-04-2005....etc.



My aim
By choosing a week no all the records within that date will be returned


I am trying to do away with having to type the start and end date each time a search is carried out

I need to be able to click on the week no and from that the results are shown. perhaps in another list box or something

Any thoughts on how to make this sort of thing work?

thanks

View 9 Replies View Related

Easy Question...I Think??????

Aug 19, 2005

I have completely forgotten how to create a form that will olny allow the user to add a new record into a table...and will not let them view or change any of the existing records.

Kind of like a sign up form. Where they enter their info, hit enter and it stores in an existing table as a new record.

I'm sure this is elementary, but I'm a dummy :confused:

Thanks for your help!!!

Dan

View 6 Replies View Related

This Has To Be An Easy Question

Apr 16, 2006

i have a access application that does a simple filter

here is my code..

dim filter as a sting

filter = "CenterName = '" & NameSel.Value & "'"

DoCmd.OpenForm FormName
DoCmd.ApplyFilter , filter
DoCmd.close acForm, FormName2

This function works fine UNTIL
NameSel.Value = "Adult's"

And the reason is b/c there is a single quote in the value...what is the best way to solve this? Any help would be great. thanks.

View 3 Replies View Related

Quick And Easy One

Jun 20, 2006

HI

I am creating this bloody db and I have created a form and when I open it, it shows, record no one, what I want it to do is open blank ready for a new bit of info to be put in. I know this is an easy one but im sick of the sight of access this week

With thanks

View 5 Replies View Related

More Than Likely An Easy Remedy

Nov 3, 2006

I have two tables and one has Job Associated Name and the date we began the job, the other table has the job associated name, however it is repeated. I want to have the date show up on the other table so that I can have it appear on a report. The two tables are linked by job associated name.

View 4 Replies View Related







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