Display Double Digit Number

Mar 19, 2008

hey guys i have the following line in my query for removing seconds from a time/date stamp and all works great except one thing if the time is 10:02 it is showing as 10:2 anyway of getting it showing correctly?

(Day([HTRXTBL].[HTRX_TIMESTAMP]) & "/" & Month([HTRXTBL].[HTRX_TIMESTAMP]) & "/" & Year([HTRXTBL].[HTRX_TIMESTAMP]) & " " & Hour([HTRXTBL].[HTRX_TIMESTAMP]) & ":" & Minute([HTRXTBL].[HTRX_TIMESTAMP]))))

View Replies


ADVERTISEMENT

Access 2007 - Cannot Display 17 Digit Number

Aug 8, 2011

I can't display a 17 digit number in my table without losing the last couple of digits to 'rounding'. I've tried 'doubling' the field size but to no avail....whatever I attempt loses the last couple of digits to a 'nice round figure'.....

The numbers had initially been imported as text...which is really what they ought to be as they're identification numbers, but I had some issues using the find 'duplicate values' query and conjectured that was because the ID numbers had been defined as text---->though I could be wrong.

The VAL function works (to convert the text to numbers) but again -- I lose the detail of the last couple of digits.

I've been beating my head against this wall the entire day and at the very least, would like to know if what I'm attempting is viable. I've stumbled through function queries (with some success) and react like a deer in the headlights when it comes to VBA....

View 9 Replies View Related

Adding Another Number Digit Into My Fax Database.

Sep 3, 2007

Hi all, I am happy with my fax database until my goverment decided to add another 6 infront of all the phone and fax number.

How can I change all the numbers together?

Example from : 1234567 to 61234567

Thanks.

View 14 Replies View Related

Queries :: Convert 19 Digit Number To Hex String

Mar 4, 2015

I need to run a query that converts a 19 digit number stored in a Short Text field to a hex string

Example of the string is "3310854670615838865" the result should look like "2DF284C801000091"

View 1 Replies View Related

Truly Urgent - Need To Generate Random, Nonduplicating 9 Digit Number

Sep 28, 2006

Hi.
I have major report due within hours.
I need to add a field to existing table that will be a 9 digit number, non duoplicating or - to take an existing field of 9 digits and allow it's values to change to random or incremental, non-duplicate numbers of 9 digits. I already have an autonumber field I must keep.

Russ

View 2 Replies View Related

Refernece Number Missing Digit During Form Transfer

Dec 6, 2006

i have a jobref (pk) as text at the moment because i tried it as Number data type and had a problem..a reference number is made and when the date loses focus the refno is displayed in its textboxthis makes that refnoPrivate Sub cbojobdate_LostFocus()Dim maxRef As Variant, maxID As IntegerDim codeDate As String, maxDate As String codeDate = Format(cbojobdate, "MMYY") maxRef = DMax("jobref", "job", "jobref like '" & codeDate & "*'") If (IsNull(maxRef)) Then 'test for new month maxID = 0 'reset id to 0 Else maxDate = Left(maxRef, 4) 'get date code maxID = CInt(Right(maxRef, 4)) 'convert to int End If Me.cbojobref = codeDate & Format(maxID + 1, "0000")End Sub8 digits.. so a job on september 6th 2006 will have a ref no of 09060001a job on february 1st 2006 will have ref no of 02060001when i send the jobref to another form using this..Private Sub cbojobfrom_AfterUpdate()If Me.cbojobfrom = "t1" ThenMe.cbojobfrom = "LHR - T1"End IfIf Me.cbojobfrom = "t2" ThenMe.cbojobfrom = "LHR - T2"End IfIf Me.cbojobfrom = "t3" ThenMe.cbojobfrom = "LHR - T3"End IfIf Me.cbojobfrom = "t4" ThenMe.cbojobfrom = "LHR - T4"End IfIf Me.cbojobfrom = "h" ThenMe.cbojobfrom = "LHR"End IfIf Me.cbojobfrom = "ga" ThenMe.cbojobfrom = "Gatwick Airport"End IfIf Me.cbojobfrom = "gn" ThenMe.cbojobfrom = "Gatwick North"End IfIf Me.cbojobfrom = "gs" ThenMe.cbojobfrom = "Gatwick South"End IfIf Me.cbojobfrom = "st" ThenMe.cbojobfrom = "Stansted"End IfIf Me.cbojobfrom = "lc" ThenMe.cbojobfrom = "London City Airport"End IfIf Me.cbojobfrom = "lu" ThenMe.cbojobfrom = "Luton Airport"End IfDoCmd.OpenForm "job_cash_inflight", , , "[jobref]='" & [jobref] & "'"End Suband the job_cash_inflight form loads it with this..Private Sub Form_Open(Cancel As Integer)Me.[jobref].DefaultValue = Forms!job_cash_single![jobref]End Subthe problem is when i choose february the first for example02060001.. when the reference number transfers to the incoming flight form.. it displays as 2060001can anyone see why because before it transfers the refno.. the original job record has already been saved.. maybe when the id is being created it is not the best way.. or it doesnt match the text datatype.. if that is the case what number datatype shall i use in each of the tables jobref appears in?

View 14 Replies View Related

Modules & VBA :: How To Change A Number Column In A Three Digit Percent One

Jun 19, 2014

How can I change a number column in a three digit percent one?Tried the following, however it just deletes the content of the column:

Code:
Public Sub TEST()
Dim a11 As Double
Dim year As Integer

[code]...

View 6 Replies View Related

Tables :: Column To Autofill Based On First Digit Of The File Number

Dec 26, 2012

I have a datasheet with 7 columns. Two of the columns I'm working with are listed below.

File # Region #
2DE2-12345 2
3DE2-@@@ 3

In data sheet view I would like the Region # column to autofill based on the first digit of the file #. So, if file # entered = 3DE3-@@@@ then 3 would auto fill in Region Column. (data is entered in data sheet view)

I have used Left ([File #],1) to get value but cant make it auto populate the Region # column......

View 6 Replies View Related

Double Calendar Display Problem?

Oct 15, 2005

Hi guys. I have moved my brothers Database from his old PC to his new one. They both run the same version of Access (2002). On his new machine the Double Calendar form opens but the date values are missing (see attached images). I have attached a screen dump of the Calendar plus the current references I have enabled. Also the calendar is using class MSCAL.Calendar.7

Form has the following events:

Private Sub Form_Load()
Me.atxCalControl1.Value = Now()
Me.atxCalControl2.Value = Now()
End Sub

Private Sub atxCalControl1_Click()
Me.txtClick1.Value = Me.atxCalControl1.Value
Me.Refresh
End Sub

Private Sub atxCalControl2_Click()
Me.txtClick2.Value = Me.atxCalControl2.Value
Me.Refresh
End Sub

Can anybody advise?
Regards,
Phil.

View 7 Replies View Related

General :: Display Listbox Record When Double Click On Item

Sep 26, 2012

I currently have a listbox. (list32) that is populated with results of a query. I would like to doubleclick on an item and have it open a form that displays the listbox record i clicked on and a "notes" field. Its my understanding that the table fields are limited to 255 chars so i was curious if I could make the notes field reside somewhere else. I will need the notes able to be edited, specific to record entry, and then saved on exit. Is this doable?

View 2 Replies View Related

How To Display Popup Text On Double Click Or Mouseover Of A Field

Nov 20, 2013

I know how to do an action on doubleclick or mouseover but I want some simple text to come up, possibly with a white background behind it that has some details about the specific production number that the user is clicking on. Is there something like this? I tried a dialog but it brings up an ugly form, I just want the text or something simple. Can this be done?

View 2 Replies View Related

Modules & VBA :: Number Rounding Error When Pulling Double From Recordset?

Jan 28, 2015

I have 2 similar numbers in a table with the following parameters:

Double, Fixed, DecPlaces = 2
One number (GLminor) = 0.10
Second Number (GLmaj) = 0.50

When i use the following code to create and pull the numbers from a recordset the (Gmin) is OK and displays as 0.1 but the (Gmaj) has a problem and displays as 0. So when i'm attempting to use it in an equation (OtherNumber) / (Gmaj) i'm getting a divide by zero error.

Code:
sSQL1 = "SELECT * FROM tblRScales WHERE ID = " & RScaleID
Set rs1 = CurrentDb.OpenRecordset(sSQL1, dbOpenDynaset)
rs1.MoveFirst
Gmaj = rs1!GLmaj
Gmin = rs1!GLminor

I've tried using CDec(OtherNumber) / CDec(Gmaj) and still get the same error.

As both numbers have the same properties in the table parameters i'm completely lost as to why one seems OK while the other seems to round down to 0.

View 2 Replies View Related

Modules & VBA :: Unable To Convert String Into Double Number Format

Jan 31, 2014

I have been trying to convert string into double number format. I am running a SQL query in VBA that returns a double number format; however my understanding with SQL queries in VBA is that they return string only. The results are showing up perfectly fine when I run the query in the query editor; however when I try using the returned value in further calculations in VBA I keep getting a "Type Mismatch" error.

View 7 Replies View Related

If Value Is A Negative Number, Display 0

Dec 14, 2006

On my "timesheet" for my volunteer database, I have a textbox called HoursRemaining. It's control source is =[HoursRequired]-[HoursCompleted]
That works great. Occationally however, the volunteer will complete more hours than required. Instead of displaying a negative number, I would like HoursRemaining to display 0.

Can this be done?

Thanks
ScrmingWhisprs

View 3 Replies View Related

Display Record Number?

Apr 3, 2008

Is there a way to display the current "record number" on a form?
Thanks

View 3 Replies View Related

Display Number Of Records

Feb 15, 2006

Is there a way to display a number (on a Form) for the number of records in a specific table? I just want to reference how many records there are. I tried to search this topic, but couldn't find anything. Thanks.

View 10 Replies View Related

Find / Display Next Available Number?

Nov 20, 2014

I am creating a form for users to enter data. Each entry needs to have a "Event ID" associated with it and these Event IDs may be used more than once but will refer to the same Event (if it was a single entry with no duplicates, I would just use the rows primary key). How to create a query that looks at a list of existing numbers (Events already in the table) and returns the next/an unused number? I would like to create a button that says "Next available Event ID" and provides the user with a number.

View 4 Replies View Related

Display Date And Week Number??

Apr 10, 2008

hi

i would like to display the date and week number on one of my forms but have no idea about dates and how to code this.
can some one help? id appreciate it it beyond me :confused:

thanks :)

rob

View 4 Replies View Related

Display Fields Based On Number

May 14, 2005

Hi Guys and Girls,

While doing a rabbit DB for the missus I have hit a problem, if one of the does gives birth to 3 babies i wish to have the details entered onto a form (not a problem) but i would like to do this:

if number of babies = 3 then fields to display to enter details is 3 on the form, i have my table setup with up to 10 seperate field for the babies per record but am stuck trying to do this

any help or direction would be great

View 8 Replies View Related

How To Display Running Number In Form?

Jul 15, 2005

Hi,
I have many records in 1 form, is it possible for me to display running number on that form? I can display running number in report by putting textbox and set its control source to =1. Is it possible to do that in form?

any idea? thanx in advance..;)

View 4 Replies View Related

How Can I Display The Number Of Records In A Database?

Aug 27, 2003

After creating a recordset how do I display the number of records in it?

View 2 Replies View Related

Queries :: Display Negative Number As HH:MM

Jul 9, 2015

I'm converting minutes to display as HH:MM but have an issue when the number is negative. How to write this so I don't end up with a negative in front of the minutes?

Format([Variance]60,"00") & ":" & Format(([Variance] Mod 60),"00")

i.e. -193 gives me -03:-13, whereas I would like -03:13

View 14 Replies View Related

Display Total Number Of Records On A Report

Oct 26, 2004

I'm sure this is a no brainer for those in the know - but I dont!
So how do I display the total number of records at the end of a report?

View 14 Replies View Related

Queries :: Query To Display Number Of Records Per Value

Aug 9, 2013

I have a date field in a table. I wish to display in a query:Column A representing the month. Column B representing the number of records in the table corresponding to that month.

View 5 Replies View Related

General :: Count Function - Display A Number

Aug 19, 2013

I have loads of projects in a table, they all have a status (eg Red, Green, Amber).

I have a query for each so if you run qry_RagRed, it will show in a sheet all Red projects and obviously have a total in there.

So I have a form which has buttons on it for navigation, what I want is to display various things on there so for example, a field that simply has the number of red projects, or green etc.

All I want it to do is tell me a number based upon number of items in a query.

View 5 Replies View Related

Queries :: Change Number In A Table To Display Text

Feb 27, 2014

I'm trying to change a 1,2,3 in a table to display NA, Yes, No on a form.

I have an Infopath form with a n/a,yes,no drop down that is dumped into Access. Infopath requires a value be tied to them so it is 1,2,3. So in Access, my table shows the numbers and not the text. I would like to know how to get my access forms to show the text instead. Not sure if I should be setting the field criteria in my query to say if this field is a 1 make it Yes, if 2 make it NO, if 3, make it NA. Or if there is something completely different to do.

I found a workaround by going into the query and using Find and Replace but I need this to update itself automatically.

View 3 Replies View Related







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