Make A List Of Fields That Aren't Null

Nov 26, 2007

I have a table that has several fields that contain a date if a user is licenced to use a certain piece of equipment and is null if not. Each recor has other data in it such as name, and a unique identifier (numeric). What I want to do is make a list of the fields which have a date in them to create a licence for what they can operate. Any help on which way to go...pretty new at access.

View Replies


ADVERTISEMENT

Queries :: How To List Records That Aren't There Yet

May 15, 2013

I'm new to query design. I have a database where operators will enter readings from 14 different compressors, twice per shift, three shifts per day. In the Rounds table for each record the following fields are included:

Timestamp (includes date)
CompressorID (1-14)
Shift (1st, 2nd, 3rd)

Round (each set of readings is a round, each shift is supposed to do 2 per shift, the rounds are numbered Rnd 1 and Rnd 2)

Status (this is one of many readings they will record for each round/machine)

On the paper form it is easy for the operator to tell which machine they haven't recorded a round for yet because the space for it on the form is blank. In the Access form they are simply presented with a blank space to enter a new record. I'm trying to develop a strategy to make it easier for the operator to see at a glance which compressors they haven't entered readings for yet. Management also needs a weekly report of which rounds were done and which were missed.

I'm thinking of creating a datasheet from a query that will list the missing rounds for each compressor/round/shift based on the current date. I think I can put that datasheet onto the form the operator is using to record the readings or perhaps on a subform they can access with a button. I'm having trouble designing the query. So far I've created a query that lists all the rounds for a specific date, then another query that uses those results to list the compressors that are missing a record.

View 14 Replies View Related

Modules & VBA :: Inventory - Show List Of Items That Aren't Already In A Table

Jun 19, 2015

I have a list box that allows multiple selections [Inventory]. I also have a combo box that has multiple selections [Shows].

Right now, user selects from list box and from a combo box and clicks a button. On button click, the items from the list box are associated with the PK from the combo and stored in a junction table. This allows me to quickly associate many inventory items to one show.

I realized that there I currently have no way to prevent duplicate Inventory+show records in the junction table besides having a composite key. This would be fine except no records get inserted into the junction table if there's a duplicate entry.

Ideally, I think that the user should select from the combo box [Shows]. This should narrow down what shows up in the list box [Inventory] in a way that Inventory items already associated with the show are not displayed.

If I have 10 Inventory items and Inventory items 1-5 are already associated with Show 1; after I select the combo box, the list box only displays Inventory items 6-10.

Here's the associated code

Option Compare Database
Option Explicit
Private Sub cmdAddRecords_Click()
Dim strSQL As String
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim ctl As Control

[Code] ....

View 13 Replies View Related

Adding Fields To A Query That Aren't In The Tables (Access 2003)

Jul 15, 2007

Hi,

My database has 4 tables. Table 1 is assembly line 1 data. Table 2 is the sizes for assembly line 1. Table 3 is assembly line 3 data. Table 4 is the sizes for assembly line 2.

The table data comes from another program - they are reimported regularly and so I cannot change, add or delete fields from these 4 tables.

I have to change tables 2 and 4 to crosstab queries and then create 2 queries that join 1+2, 3+4. That's easy enough, no problem.

But then I have to UNION queries 1+2. While 95% of the fields are the same, the most crucial are not - the sizes. Assembly line 1 has 5 less sizes than assembly line 2. I need ALL of the sizes to show in the combined query.

I need to add these 5 fields without adding them to the tables. I did manage to create a crosstab query that included the missing sizes, but now I have a 1 in those fields where I need a NULL or Zero value.

Does that make sense? Can anybody help me?

Thanks in advance.

Rhet

View 2 Replies View Related

Why Aren't My Date Fields In Date Order ??

Sep 20, 2006

Help - Why don’t my date fields sort in date order ?

I’m having a very annoying problem with my date fields. I have a database that keeps records of patients details and their visits to the practioner.

I have a form based on Patients table with name address etc, and a subform based on a Case Details table with details of visits and advice given etc.

I need the Case Details subform to display the latest visit/record at the bottom (the earlier visits at the top of the list). For some reason I just cannot achieve this. Dates seem to be scattered all over and I can’t understand why ??

I have tried sorting the Case Details table in ascending order, sorting the ‘Date of Visit’ field on the form in ascending order (which does work but as soon as the form is closed and re-opened, all the dates are mixed up again).

In the ‘OrderBy’ property of my Case Details Subform, it says:-
[Case Details Table].[Date of Action]
which according the help I have tried to look at should sort the records ??

I’d really appreciate any pointers as to where I’m going wrong

View 4 Replies View Related

Onformat For Report Make Visible Is Not Null

Aug 13, 2005

I want my fields on the report to show up if there is data to show and to disappear if no data is avaliable. Also, will the fields format together or will they still stay apart? I need them closer together for the report.

Here we go.

In the report are months 1, 2 and 3 as well as the label box for each. I need the label box and the data(text box) to disappear when the data box is null. This is where I had started:

Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)

If Not IsNull(Me.Ctl1_Month) Then Me.Ctl1_Month.Visible = True
Else
Me.Ctl1_Month.Visible = False
End If


End Sub

But when I try and run the report I get this error:
Can't Execute Code in Design Mode.

Can someone help as to what I have done wrong or where I should place this type of format?

Many thanks.

View 8 Replies View Related

Reports :: Make Image Field Disappear If Null Value

May 23, 2013

I have an image field on a report that keeps showing up even if the field value is null.

=IIf(IsNull([Image_tbl4mgr21]),"",[image_tbl4mgr21])

How to make the white space completely disappear when that image field is empty?

View 3 Replies View Related

Reports :: Null Date Field - Make Entire Entry Not Visible On Report

Dec 16, 2013

I am building a report that has a header with several details followed by a detail section.

What I need to do is make the entire entry not visible on the report if one of the dates is null.

So it looks like this

last first title id memb # date a date b
1. smith , john fng 8521 2356224
5/12/2012 6/20/2013
10/2/2013 (is null)

2. neckbone, jim dude 2548 85858412
6/20/2013 5/5/2014
8/5/2013 2/31/2013

On the report i want the 1st entry (smith john) not to be visible due to the null (B) Date.... but i want it to be visible once the date is entered...

View 2 Replies View Related

Choosing Fields From Combo Box To Make Fields Visible

Aug 30, 2004

I have a combo box linked to a look-up table. There are 8 fields in the look-up table but only if one of three is chosen do I want additional combo boxes to become visible. Do I put the code in the "after update" or "on change" event of the combo box and how do I express the code-

If TechniqueCombo="caudal" or "spinal" or "epidural" then
TextNeedleType.Visible=True

(am I close??)

Thanks

View 4 Replies View Related

Muliselect List - To NUll

Mar 9, 2006

How do I set a mutislect listbox to nothing selected - If it was not multiselect

I just do = Null

but that doesn't work for multi

if it is extended - I can just requery - howeever I have simple and this dosn't work.


Thanks

View 2 Replies View Related

List Box With NULL Option?

Dec 29, 2014

I have a table for holding client responses to a questionnaire. 10 of the fields in this table are List Boxes with options "Yes", "No", and "Blank/Other". The "Blank/Other" option is supposed to be reserved for forms handed in where the field has been intentionally left blank. If the form has not been handed in at all, I want the fields to just be NULL. The problem is that if someone accidentally fills out information for a row that should all be NULL, there is no way to correct it. I have tried adding NULL (no quotations) as an option in the list box, but this does not work. I have also tried adding "" as an option, but no luck there either.

How do I add an option in a list box to leave a field NULL?

View 4 Replies View Related

How To Make A List In A Subform

Jul 23, 2014

I am trying to build a training database, I want to open a form which shows the employees details, when open I want the attached Sub form to show a list of training documents completed to be listed. I have got it so that the sub form shows a list but of all the students, but I just want a list for the the specific person.

View 2 Replies View Related

How Do I Make A List Of Links To My Reports?

Jul 5, 2006

I am using 97 and have been running into problems with tutorials from microsoft since they are in 2000 format. Its not a big difference so maybe I just cant figure it out...

Anyways, I wanted to make a list of the reports I had for the user to click on one and have it pop up. Anyone know how I can make this list?

My idea is to somehow create the names in the list box using a query or something and have them be links to the report somehow...

Please help...Thanks :)

View 14 Replies View Related

Need To Make A Report List! Nothing Seems To Work...

Jul 7, 2006

Ive been trying to make a form that has a report list for filtering. Everything I research and do just isnt working for me. Ive followed a video about it and visited these sites.

http://www.fabalou.com/Access/Reports/filterreport.asp
http://www.fgcu.edu/support/office2000/access/
http://www.access-programmers.co.uk/forums/showthread.php?t=110337

I think the code just isnt working in 97...

View 1 Replies View Related

Need To Make A Report List! Nothing Seems To Work...

Jul 7, 2006

Ive been trying to make a form that has a report list for filtering. Everything I research and do just isnt working for me. Ive followed a video about it and visited these sites.

http://www.fabalou.com/Access/Reports/filterreport.asp
http://www.fgcu.edu/support/office2000/access/
http://www.access-programmers.co.uk/forums/showthread.php?t=110337

I think the code just isnt working in 97...

Any Ideas? Maybe I just need more help or the code needs edited!?!?!

Thanks.

View 3 Replies View Related

Pie Charts - Why Aren't They Simple?!

Feb 25, 2008

Hi guys,

i have built a query to find the sums of various fields from various tables. i want to make ONE piechart from all these the sum values... i.e.

Cars - 500
Planes - 300
Those digger things i always wanted as a kid - 200

But the stupid MSchart activex thingy in Access 2007 always wants to Sum/max/be an idiot to the data. All i want is a damn pie chart!

Any ideas?

If it can be done in VB by saying "split the piechart into 3 pieces. One = Cars, two = Planes, three = diggers" - that would be ace

View 5 Replies View Related

Select Record From List Box To Make Current

Mar 15, 2006

Hi. First of all, this is my first post, so tell me if I'm being stupid.

I have a simple form, 'BuildingID', which contains a list box and two buttons. The list box lists a field from the records in the table 'BuildingID'. The two buttons are 'Add Building' and 'Delete Building'. The 'Add Building' button works fine, but I cant figure out how to make the other one work.

I want to be able to single click one of the records in the list box, then hit the 'Delete Building' button to delete the entire record. So I'm guessing I have to somehow make the record that I click on in the list box current when I click on it, then have a standard delete record button.

If anyone can help I would be very greatful. :)

View 2 Replies View Related

Forms :: Make One Combo List Depend On Another

Sep 24, 2014

I have a combo: cmb_TrainingType. The sql is:

Code:
SELECT tblTrainingType.TypeID, tblTrainingType.Type FROM tblTrainingType ORDER BY tblTrainingType.Type;

My second combo (the one that should be filtered based on the Type chosen above) is cmb_Project_Title. The sql I have written (which isn't working) is:

Code:
SELECT tblCourseDetails.CDID, tblCourseDetails.Project_Title FROM tblCourseDetails WHERE (((tblCourseDetails.TypeID)=Forms!frmResourcing.cmb_Training_Type) And ((tblCourseDetails.Type)=Forms!frmResourcing.cmb_Training_Type)) ORDER BY tblCourseDetails.[Project_Title];

Both of the tables that are referenced have the fields TypeID and Type.

View 1 Replies View Related

Selecting Entries In Combo Box That Aren't There

Jul 14, 2006

I seem to remember that there is a way, in a combo box, of entering an entry that isn't displayed in the combo box, so that you can then process that entry into a form's underlying table?

I think the example of doing this was in the MS Samples database for either Access 97 or Access 2000.

Does anyone recall what I'm talking about? Second question, does anyone have a link to those sample databases? Our technicians didn't bother loading the samples for us, so I'm kinda stuck.

Thank you tremendously to any and all who reply..... I'm looking forward to your responses!

View 4 Replies View Related

Modules & VBA :: Make Multiple Tables Using Parameters From List

Jun 11, 2013

I've got a table of associate directors "t_ADnames" and want to build separate tables for each AD name that pulls a pass through query from our data warehouse. I'm thinking it's got to be done with a macro somehow? So it would run pass_query where AD name = "John" and insert into t_john, then it would check the next name in t_ADnames and run the same query for say "Mark" and insert all his data into t_mark and so on until the list (of about 12 people) has been completed.

View 13 Replies View Related

Lookup Table - How To Make More Than 1 Field From Query Appear In The List

Dec 1, 2014

In Access, when using Look Up function, Table/Query, how do I make more than 1 field from the query appear in the drop down list?I will be doing the same thing for students and some other tables. But for this example I am only wanting to show instructors first and last name and their ID number in the drop down.

I am using

Code:
SELECT instructors.first, instructors.last, instructors.ID FROM instructors;
in my Classes table.

What am I doing wrong?

I would like for it to show their instructor first and last name but actually put the ID in the field as I will be using that key for various relationship based functions. Show the first and last name to the person who will be using the database, but actually put the ID in the field so I can use it as a common field across other tables.

View 1 Replies View Related

Printing Multiple Reports That Aren't Blank!

Jan 26, 2005

Hello
Here's the problem:
I'd like to print multiple reports using a button in a form.
I guess I could use something like that:
DoCmd.OpenReport "report1", acNormal
DoCmd.OpenReport "report2", acNormal
DoCmd.OpenReport "report3", acNormal
DoCmd.OpenReport "report4", acNormal
etc
in the command.click sub but here's the tricky section:
Some of my reports (they are all based in select queries) do not contain data.
How can I make access print only these forms that include records ?
For example if the query that provides records to the "report2" returns nothing, I would like on the commabd click event mentioned above, only the report1,3and 4 to be printed. Am I asking too much?Hope you guys understand what I'm talking about. Sorry , if my English isn't too good
Thank you in advance

View 7 Replies View Related

Combo Box Has Right Amount Of Values But They Aren't Showing Up

Dec 18, 2013

I'm creating a form where people can choose something in the first combo box [ComboBox1] which results in the second combo box [ComboBox2] displaying only the items that are associated with the first combo box [ComboBox1].

In my second combo box I have the amount of "empty lines" that equals with the items associated with the first combo box. But there is nothing displaying. No words.

View 8 Replies View Related

Modules & VBA :: How To Make A Calendar Form With List Boxes Having Two Columns

Jul 19, 2013

Runtime Error 3075? I have attached a copy of my database. I am trying to make a calendar form with the list boxes having two columns. It works fine with the strFieldID and strFieldName but when I try adding the strDone I run into the error.

View 6 Replies View Related

If A Make-table Query Result Is Null, How To Have A Default Message Appear In Table ?

Jan 21, 2005

Hi everybody,

Beginner here needs help !

I'm building a make-table query for which if the result is null (no record correspond to the set of criterias), a default message like "there was no activity during the period" would appear in the table (not a message box...I need the message in the output table). The best I could think of is an IIF function but it doesn't seem to work... Is there any way to do this without using VBA?

Thanks in advance !

View 1 Replies View Related

Tables :: Back End Relationships Aren't Updating To Front End

Jul 31, 2013

I have a split database. My backend Relationships aren't updating to my front end. How do I get my front end relationships to update to what my back end looks like? All tables are LINKED not imported.

View 1 Replies View Related







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