Forms :: Detecting Up Or Down Arrow Keys

Jun 4, 2013

Is it possible to detect the Up or Down arrow keys?I've tried using the following in the Form's Key Press event;

Code:
MsgBox "You pressed the " & KeyAscii & " Key"

Which returns the ASCII code for most other key but not the arrow keys

View Replies


ADVERTISEMENT

Forms :: Can Combo Boxes Work With Arrow Keys

Sep 29, 2014

As a user types, combo boxes have a "live update" function that fills in the rest of the box based on the row source of the combo box. Can a user can use the arrow keys to navigate through the current options based on what they have currently typed?

I'm thinking of something like when you are typing something into an internet search engine, multiple content options appear below and you can either continue typing--thus narrowing the result--or use the arrow keys or mouse to select one of the content options that have appeared.Is there any function similar to this in Access?

View 7 Replies View Related

Left And Right Arrow Keys

Apr 13, 2007

I would like to have a event for the left and right arrow keys, does anyone know how to do this?

View 4 Replies View Related

Forms :: Down Arrow Key Movement Between Records Slower Than Up Arrow On Datasheet?

Jun 13, 2013

I have a pop up form with a datasheet as a sub form. We use the up and down arrows to move between records. The problem is using the down arrow is 4 to 5 times slower than using the up arrow. This becomes a big problem when we hold down the arrow to move down 50 or more records. I believe it has something to do with the way the screen is repainted because in testing if I shrink the datasheet to show only 3 or 4 records the up and down movement is almost identical and matches the performance of the excel spreadsheet that this form was based on. Is there any fix for this?

View 7 Replies View Related

Forms :: Down Arrow Key Not Working On Split Form

Dec 19, 2013

When I select a row on a split form I would like the up and down arrow keys to move to the previous and next record. However this isn't happening.

When I select a row and press the down arrow nothing happens.

I have the navigation buttons set to no because of the issues I'm having with them.

How to get the up/down arrow keys to work on a split form??

View 3 Replies View Related

Detecting User?

Sep 22, 2006

Hello.

So, I have a logon form with a combo box for user name and a text box for the password. When they hit login, the user is then looked up and the password verified and if it's good they're taken to a specific screen that gives them specific options. What i want to know is how to hold the value of the user throughout their entire session? The reason for this being, to keep track of what data they enter mainly.

Any help would be much appreciated!

Thanks!

View 4 Replies View Related

Detecting First And Last Record

May 6, 2005

what is the proper method to check if the current record on a form is the first or last record ?

When i try :

If Me.CurrentRecord = acLast Then .....
it does not seem that it detects the the last record.

Similarly with acFirst

Any ideas ?

Thanks

View 2 Replies View Related

Detecting Data

Nov 14, 2006

I have multiple forms, one of which you can view meeting details (form 1), if a mistake is spotted, there’s an ‘amend’ button which brings up a text field to enter in the description.
Now I have another form (form 2) that you can view the meeting details later on, and I want it to display the amendment description if there’s something typed there.
So on form 2, if there’s no amendment description (from form 1), the field stays hiding, but if there’s an amendment description in the field, the field will be visible.
So is there a way to display a field if there’s data entered, or keep it hidden if no data is present?

Thanks in advance

View 1 Replies View Related

Detecting Consecutive Dates...

Mar 21, 2006

Firstly I have placed this in the general section as I am not quite sure if any vba would need to be created for the following. I would also like to report on the information but the answer may not be done at report level.

Anyway, I have created a very basic database that holds staff attendance and their reason for being absent.

tblattendance:
AttendanceID
AttendanceType
StaffID
AttendanceDate

What i would like to do is group consecutive dates if they are all the same type and show them as DateFrom and DateTo

So for example, for someone who is on holiday between 01/Jan/06 and 06/Jan/06 I could show that as:
DateFrom 01/Jan/06
DateTo 06/Jan/06

I am not sure if that is explained very well but I will try to explain a bit more clearly if needed?

Thanks for any help.

View 1 Replies View Related

Detecting The Current Year?

Sep 22, 2006

Hello.

Just wondering if there was a way to detect the current year? (2006, obviously). Reason being, have an input date of year a block of trees was planted and i want to have an automatic calculation for the 'age of trees'.

Thanks!

View 4 Replies View Related

Detecting Duplicate Entry

May 22, 2006

I have a Form based on a table of current Players in a football league.
The Form is used to edit, but mainly add new registrations. The fields are...

Surname FirstName Address Suburb Age Club YearRegd

Is it possible in some way to have an alert or message come up stating that the Player is already registered if the Table already contains a player with the same Surname and FirstName only. This would need to happen after the FirstName has been entered as it is the second field after 'Surname'. I'm not sure if Access can do this type of function or not.

I've searched the Forums but have had no luck.

Any advice/assistance is greatly appreciated.

Thank-you very much.

View 1 Replies View Related

Forms :: Creating Hot-keys On A Form

Sep 5, 2013

I have a tab control on a form, and I want to use "Hotkeys' to get from one page to another (or more specifically, to toggle the visibility of the pages).

So, I set up the tab control with the pages I want hidden set with visible=No. Then I enable the Form.KeyPreview, so that the form will get a chance to look at all the key presses.

Lastly I have a Form.KeyDown handler, that looks like this:

Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
MsgBox "Key pressed (1): Shift value is " & Format(Shift)
' Detect Hot-keys for the pages in the MultiPage wizard, and make them Visible or not visible
' P/D/X/S/R/H/C
If Shift = acAltMask + acShiftMask Then

[Code] ....

This is early on in the design iteration - more will happen with the pages, but this is an easy way of reviewing various aspects of a project.

So what happens?

I put a breakpoint at the first If statement, and sure enough, it picks up the Ctrl key or the Alt key, whenever they are pressed. (I need to use the mouse to clear the msgbox, naturally!) When I press both of them (Ctrl/Alt) I get the required value of 6, but I never seem to get to the second msgbox. In addition, if I comment out the first message box, I also never seem to get to the second msgbox (ie the point where the combination has been detected.

KeyDown obviously has to fire for each component of a HotKey combination, and the Shift parameter has been shown to be cumulative. The only thing I can think of is that somehow I need to turn off keypress processing somewhere else (Used to be possible to use Cancel to do this, I seem to recall).

View 3 Replies View Related

How To Hide The Drop-down Arrow On A Combo Box

Oct 4, 2005

Is there a method you can use to hide the drop-down arrow on a combo box until the combo box is selected?

View 5 Replies View Related

Detecting A Field Which Cause An Error Message

Jan 21, 2006

I am learning how to create custom error messages.

I know about the "OnError" event of the form, and knows how to replace the standard error message.

I wish access will produce an error message saying something like "You must put a value in field X" (custom made msgbox)

How can I identify this 'field X' which caused the error message to be displayed?

Hope I made myself clear.

Thanks for your comments.

View 6 Replies View Related

Remove The Arrow Next To LookUp Field

Mar 20, 2006

Hi,

I have a SearchResult Form, it only display search results.
one of the field in this form is a LookUp field (Nationality).

and LookUp fields, as you know has this arrow next to them.

and since this form display only the results, i don't need this arrow. how can I remove it?

i tried using a text field, but it will only display the code of the nationality because the discription is in another field (that's why I used a lookup so I can select the discription in the Row Source) and text field dosn't have Row Source.

Please Help!

Thanks,
CS.

View 2 Replies View Related

Forms :: Any Way To Disable Hot Keys At Login Form

Nov 16, 2013

I have a fully functioning frmLogin that appears when the database opens. After correctly logging in, it takes you to the appropriate switchboard. The problem is that I set autokeys to allow F1 to automatically open the switchboard, but I don't want users to hit this to bypass my login screen. The reason for keeping the switchboard open is to force the user to close the database using the switchboard(eventually I want to limit the user to only the forms that I have created in a split database).

My other option that I tried first was writing a module that would detect when all forms are closed, then open the switchboard. But I kept getting Error91 and got frustrated/stopped attempting this method. Using the hotkey gives the user a similar functionality, but less conveniently so(since its not an automated process, etc.).

View 4 Replies View Related

Forms :: Functional Keys To Perform Commands?

May 2, 2014

tell me that can we use functional keys F1, F2,F3,,,,,,,,,,,,,,F12 in ms access to perform commands like saving a form data , for closing form refreshing form, clear form.Or is there any way to make shortcut keys combination like[(ctrl+s)(ctrl+c) (ctrl+A)] in access to perform action like saving,closing,clearing, current form.

View 1 Replies View Related

Can The Autofilter Drop Down Arrow Be Reformatted To A Different Colour?

Dec 17, 2007

Hi,

Possibly a silly question.

The drop down triangle toggles from black to dark blue when a filter is on. I find the difference quite difficult to distinguish without giving my age away, screwing my face up and leaning into the monitor. :(

I would like to reformat the triangle to toggle to, say, bright red when the filter is on.

Can this be done?

Thanks in advance.

View 3 Replies View Related

How To Get Drop Down Arrow To Select Proper Values

Nov 12, 2014

I have a field in a Contacts table called Referred By. I also have a separate table called Referred By which contains a numeric ID and a value for each Referrer. When I enter data into the Contacts table, I want the Referred By field to have a down arrow so that I can select the appropriate value. The Referred By table has 2 fields -- ID (AutoNumber) and Referred By (Long Text). There are currently 5 values in the Referred By Table.

View 5 Replies View Related

Modules & VBA :: Detecting Excel File Is Password Protected

Apr 4, 2014

Any VBA code that would tell me whether an xlsb file is password protected?

View 5 Replies View Related

Forms :: Primary Key As Multiple Foreign Keys In Single Table

Mar 26, 2013

I'm developing a simple sporting records db. I have a 'Competitor' table listing competitors as follows: CompetitorPK, Name, Division, Club. I have a 'Contest' table listing contests as follows: ContestPK, Competitor1_FK, Competitor2_FK, Winner_FK, Score etc. My question is have I modelled tables correctly i.e. CompetitorPK will appear in three columns of Contest table. How do I define this relationship? What alternative is there to what I have done.I intend to use forms to populate both tables (independantly obviously).

View 4 Replies View Related

Forms :: How Data Is Passed Using Foreign Keys - Cannot Display Proper Information

Jan 25, 2015

I'm trying to understand how data is passed using foreign keys.

I'm using Allen Browne's 'Don't use Yes/No fields to store preferences' at: [URL] ....

I've also downloaded his sample DB, RelationBasics, to use as a guide.

Attached is my version of the Student / Sport DB as described on the webpage.

I use 2010 at home (saved as 2003 version) and 2003 at work (JPNSE OS). Both result in the same thing.

The problem I'm having is I cannot get the actual sports to display in the combo-box, only the Sport_ID number.

I've tried building both forms with and without actual data in the TBL_Student & TBL_Sports tables, but no mater what the result is the same.

View 2 Replies View Related

F Keys

Jul 12, 2006

Is it possible to use F keys to call Forms/Queries. I have used the code below and found when i press F7 spell ceck runs:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF7 Then

Dim stDocName As String

stDocName = "qryDepartment1"
DoCmd.OpenQuery stDocName, acNormal, acEdit

End If
End Sub

I have put this code in the keydown on the form.

Do i need to disable the existing F keys duties.

View 4 Replies View Related

Primary Keys

Nov 28, 2005

I was wondering if anyone would be able to help me? I have two tables which can be linked together as they both contain a field called Company Name. However, in one of the tables I want Company Name to become my primary key but this field contains duplicates. How can Isolve this so that I can still link my two tables together?

View 2 Replies View Related

Link Tbl Keys...which Way To Go?

May 13, 2006

Hi Forum,
I'm building a db to track computer and user problems for work, where I double as a Client Support Administrator (IT Guy).
I have these tables: (simplified list)

tblComputers
tblPeople
tblCompAssignment
tblProblems

I'm at a loss as to how to link the 'Problems' table. This is where I'll record trouble tickets reported by users.
Incoming trouble tickets could relate to the Computer or to the User's Network Login.
I thought I might have a field in the problems table for UserName and also one for ComputerID, but this seems problematic. Anyone got any ideas?

View 12 Replies View Related

Foreign Keys

Aug 25, 2006

Hi,

While designing a database, I came up with 3 different foreign keys in one table. I am afraid this is not right!

Is it possible to have this number of FK in one table or does that suggest a design flaw?

Any help will be very much appreciated.
B

View 7 Replies View Related







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