Tab Control Loses Events..???

Aug 15, 2005

I have a form with a number of controls with code behind - this works as required.

However, recently I decided to use a tabbed control to hold the controls and simply cut/pasted these control onto one of the pages of the tab control. The events now no longer fire as they did and I have no functionality on the form - the code still exists in the design of the form though..... any ideas?

View Replies


ADVERTISEMENT

Bug: Treeview Loses Check Marks On A Tab Control

Jul 18, 2006

If anyone wants to test this out to verify its a true bug it would be helpful:

Create a tab control.
Place a treeview control (with checkboxes = Yes) on one of the pages.
Populate the treeview.
Check some boxes.
Move to the next page of the tab control.
Return to the page with the treeview.
Viola! The checkboxes you checked previously are all unchecked.
(Not just visually, but property-wise as well).

One step forward, two steps back.

Actually, the work around is to remove the treeview from the tab control and then change the Visible property of the treeview to False if on a different tab page, and True if on the page you want it to display on. But c'mon why can't it work the way you'd expect it to work!

Jeff

View 1 Replies View Related

Memo Control Loses Focus When Typing

May 10, 2007

I cant seem to type after a couple of lines as the page moves to the top, i have to keep pressing shift and F2 to complete the typing. Even with Shift and F2 box im unable to click enter to go to the next line as the box closes.

So if i start typing in the pic FM2 then FM1 appears automatically. Basically i cant use the memo control like a word document for my users.

Please help.

View 1 Replies View Related

Tab Control Has No Events

Feb 15, 2006

Is just me, or are all of the events on tab control tabs disabled?

View 3 Replies View Related

Modules & VBA :: Capturing Events On A Frame Within Multi Page (tab) Control

Aug 23, 2013

I have a form with a tab control and an option group (frame). When I built the layout of the contents of the first tab, the frame responded properly to click events. Now that I have copied them onto the tab control, the events seem to disappear.

(When I check the events for the controls, they are all still there, and selected by the Properties table).

I know it's probably one of the "doesn't use Access very much, does he" type of situations, so how to get these controls working again!

Here is the Form Code listing.

Option Compare Database
Option Explicit
Sub SetSourceDescription()
If Me.frRunMode.Value = 0 Then
Me.lblSourceType.Caption = "Source for this run will be the Extract .pst file(s)"

[Code]...

View 3 Replies View Related

Modules & VBA :: ActiveX Control Events Aren't Raised While Calling Its Methods From The Open Event

Oct 9, 2013

We have an ActiveX grid control, 10Tec iGrid, written in VB6. One of its method, Group, used to group rows, raises the AfterAutoGroupRowCreated event so the developer can adjust the look and contents of every group row created during the automatic process of grouping.

When our ActiveX grid is hosted on an MS Access form and we call the Group method while populating the grid in the form's Open event, the AfterAutoGroupRowCreated event isn't triggered. But this event definitely works as expected in other development environments, and even in MS Access if we call Group from the form's Load event.

Is it a well know issue of MS Access, when any events of ActiveX controls aren't triggered while "executing" the Open event

View 1 Replies View Related

Crosstab Query Sometimes Loses Fields

Nov 20, 2007

Hi Folks
Not sure if this should be in the Queries or Reports forum?

I have a MakeTable Query which selects data between 2 dates to create the following Table.

IncID, IncType, IncDate, AggType
15, Agressive, 23/02/2006, Verbal
23, Agressive, 14/05/2006, Threat
72, Agressive, 18/11/2006, Physical
89, Agressive, 20/12/2006, Verbal

I then have a crosstab query that counts the different "AggType" like this.
(This data is output to a report as both data and a chart)

Verbal, Physical, Threat
2, 1, 1

This all works great IF the date range is large enough that all 3 AggType fields are included. BUT, I my date range was from 01/05/2006 to 31/05/2006, I would only have 1 record (23, Agressive, 14/05/2006, Threat
) so the crosstab would result in ONE field only. (Threat)

The problem is that my report is looking for 3 fields (Verbal, physical and Threat)

How can I stop the report from giving an error if fields are missing from the crosstab result?

Thanks

View 2 Replies View Related

Forms :: Cascading Combo Box - Loses Value

Mar 21, 2013

I have built several combo boxes in other DB's but haven't had this happen before. I am adapting a template DB to work for me. The form is continuous and I added a field [CategoryID], I want the [ProductID] to filter based on CategoryID choice. Pretty straight forward and it works, but the [ProductID] field will not hold the text value. It's a number field to hold the ID value, and bound column is 1(Select query is ID,ProductName,StandardCost) with ID and StandardCost column widths set to 0cm. I can choose CategoryID, the ProductID combo filters correctly, then when I proceed to the next record, the ProductID goes blank.

View 9 Replies View Related

Access 2003 SQL View Loses White Space Changes

May 2, 2007

Hello,

Is there a way to configure Access so SQL View saves white space changes to a query? By white space changes I mean tabs, spaces and carriage returns added to make the query more readable in SQL view.

For instance:

When I'm editing a complex query in Access, I space it out nicely like:

SELECT ((field1 * field2) + (field2 * field3)) / field4 AS [Weighted Avg]

FROM table1, table2, table3

WHERE table1.field = 'xxx'

or something similar, with spaces between fields, parenthesis, and carriage returns or tabs in between major blocks of logic to increase readability. It's simplified above but I hope you get the point.

When I save it and return to SQL View later, Access compacts the query to:

SELECT((field1*field2)+(field2*field3))/field4 AS [Weighted Avg]
FROM table1,table2,table3
WHERE table1.field='xxx'

The above example isn't so bad, but with multipe selects, joins and mathematical calculations using parenthesis, it becomes really unreadable after Access "compacts" it.

Any way to change this lovely "feature" ?

Thanks,

-Scott

View 1 Replies View Related

Modules & VBA :: Requery Listbox With Value From Combo Box Loses Format

Mar 19, 2015

I have a listbox on a form with several fields, 3 of which are currency fields.When I filter the listbox using afterupdate from a combobox on the same form, the listbox loses the currency format on the fields.

Code:
cboprop_AfterUpdate()
Dim ListFilter As String
ListFilter = "SELECT [qry_inv_form].[inv_no], [qry_inv_form].[prop_ref], [qry_inv_form].[inv_date2], [qry_inv_form].[inv_desc_type], [qry_inv_form].[inv_net], [qry_inv_form].[inv_vat], [qry_inv_form].[inv_total], [qry_inv_form].[year_month], [qry_inv_form].[month_text] " & _
"FROM qry_inv_form " & _
"WHERE [qry_inv_form].[prop_ref] = '" & Me.cboprop & "'"
Me.inv.RowSource = ListFilter
Me.inv.requery

I tried wrapping the fields in Format(fieldname, "Currency") but that came back with a syntax error.

View 2 Replies View Related

MultiTab Form Loses Size When Report Is Opend And Closed

Jun 24, 2005

Hi
Ive been searching for answers need assist.
I have a multi tab form with multiple sub forms and control buttons.
One of the buttons calls a report to come into preview mode.

the problem is when I close the report the multitab form loses its max size.
I have tried
docmd.maximize on the on open, on got focus of the form
and I have tried the
docmd.restore as well with no luck.

any suggestiond greatly appreciated.
J

View 1 Replies View Related

MultiTab Form Loses Size When Report Is Opend And Closed

Jun 24, 2005

Hi
Ive been searching for answers need assist.
I have a multi tab form with multiple sub forms and control buttons.
One of the buttons calls a report to come into preview mode.

the problem is when I close the report the multitab form loses its max size.
I have tried
docmd.maximize on the on open, on got focus of the form
and I have tried the
docmd.restore as well with no luck.

any suggestiond greatly appreciated.
J

View 2 Replies View Related

General :: When Transfer Data From Table In Excel To Table In Access / It Loses Format

Jan 29, 2015

When I try to transfer (ctrl c + v) data from a table in Excel to a table in Access it loses format.

Exemple: $ 1.000,00 (Excel) become 1000 (Access).

I need to keep the format to make sure that the code works properly.

View 9 Replies View Related

Events And Participants

Jul 10, 2005

Here is what I want to do:
I'm organising 15 training events, for 60 participants. These 15 training events fall in three themes: running, swimming, cycling. So there are 5 training events held on running, 5 on swimming, 5 on cycling. Each has on average 4 participants, but in reality, some have 6, some 2.

Everybody has to attend each of the three themes, so three of the 15 events.

I have a table called "events". each record contains data on a certain event (place, date, speaker, participants,...)

I have a table of 60 participants, with: their names, their age

Per event, I want to indicate who is participating, with a combobox. Now, the number of participants per event is not limited, so it could be 5 or 30.

Also, it could be nice if the combobox content is limited to the people that haven't been selected yet. So if John Doe is already taking the swimming training in event Swimming1, if I pull down the list of participants in event Swimming2, I do not want to see John Doe's name there.

Also, I want to calculate the average age of all the participants of a certain event.

I want to print out two reports:
1) per training event, an overview
2) per participant, an overview of all the events he has inscribed to

How do I go about this?
Currently I am using 30 comboboxes, and 30 fields in the table "events", called participant1, participant2, participant3,..., participant30
But it is becoming messy, and when I ask for a report per participant, he only gives me the details for the people in participant1.

View 9 Replies View Related

How To Deal With Events Across More Than One Day

Oct 7, 2005

Right this is a fundamental issue for me here and I cant get my head around the problem!!!

The database I am working on is a database which records the training courses (run by the NHS) which staff at GP surgeries in our area have attended and acts as a booking system for them.

So we have the obvious tables - one for courses (including the name, cost, etc) and then one for course dates (linked by courseID) and one called training_record which contains who went to what when.

It seems simple but it has come to my attention that for example, "Course A" may in fact take place over 2 days, which could be a week apart. The surgeries are billed in one invoice, i.e. Course A would be £100 for 2 days.

How would you recommend I have this data? I can see all sorts of confusion arising... :(

The only way I have thus far thought would be to put each one in like:

course name: cost date
Course A: day 1 £100 - 29/10/2005
Course A: day 2 n/a - 6/10/2005
Course A: day 1 £100 - 01/11/2005
Course A: day 2 n/a - 08/11/2005

However this seems long winded as some courses may be a few days long and this means adding each person to multiple ones!!!!

Any assistance with getting my head around this would be ace! :)

View 1 Replies View Related

Events Not Triggering

Jun 23, 2006

Access front end, SQL Server backend.
----
I have a continuous subform (part of a tab control on a main form) whose name and sourceobject are both "sbfCannulae". There are about 10 fields on the subform, and all are bound to fields in a table. The primary key of this table must be generated by combining two other fields, which must happen just before the record is saved. (I know calculated data should not usually be saved in tables, but trust me. In this case it is necessary.)

Right now the user COULD enter data into the primary key-bound textbox, but since the user is me, I make sure not to do that.

When I enter data into all fields except the primary key, I get an error because the primary key cannot contains nulls...of course.

I use the following code to tell me when an event has been triggered.

Code associated with sbfCannulae:
Option Compare Database

Private Sub Form_Activate()
MsgBox "cann activate"
End Sub

Private Sub Form_BeforeInsert(Cancel As Integer)
MsgBox "cann before insert"
End Sub

Private Sub Form_BeforeUpdate(Cancel As Integer)
MsgBox "cann before update"
End Sub

Private Sub Form_Current()
MsgBox "cann current"
End Sub

Private Sub Form_Dirty(Cancel As Integer)
MsgBox "cann dirty"

End Sub

When I enter data into a new record, the Dirty event is triggered, but I cannot for the life of me figure out how to trigger any of the other events. No combination of values and nulls in any fields, clicking in other tabs, clicking to other records, or using the navigation buttons will ever trigger any events but Dirty.

The only msgbox I ever get is the one giving delivering the SQL error about the primary keys not taking null values.

What am I doing wrong?

-Matt

View 1 Replies View Related

Field Events

Sep 10, 2006

Dear friends

I request your comments please...
I have a form with bound and unbound fields and have linked the [Event Procedure] on these fields base on there respective action.

Now when I open or click a particular field with the event procedure, the procedure is names are like -
Private Sub Rate_Exit(Cancel As Integer) or
Private Sub Quantity_Exit(Cancel As Integer)

but others events are name like Private Sub Quantity_Enter() simple. Why is that ms access (Cancel As Integer) uses only for specific events only.

View 1 Replies View Related

Problems With Events

Oct 1, 2004

I have a main form that calls several other forms for the user to input data. When the user closes one of the sub forms I would like to know what event is fired when the main form gets the focus back. I have tried several different events and can not figure out which one will work. Hopefully someone knows the answer I'm going crazy tring to figure it out, oh wait I'm already there.

Thank you

View 3 Replies View Related

Events In Forms

Mar 16, 2007

I have a database in which people add little bits to different fields as they go. For instance, person 1 puts in appointment, person 2 verifies info for the customer, person 3 checks the customer in, person 4 takes their money. What I am trying to do in a form is track the time when each department accessed it, and which user. I can do this on a new record, but for some reason, I can't get the event properties to work correctly on my form. I have a field for each department set aside for when they update their part of the record. What I am trying to do is, when the record is updated, having the time autopopulate the field.

Example:

Appointments enters |DATE OF APPT| |TIME OF APPT| Appointment timestamp should = time()

Verification enters |PATIENT INFO| |VERIFIED y/n| Verification timestamp should = time()

Reception enters |PULL TAB#| |CHECKED IN y/n| Reception timestamp should = time()

Cashier enters |AMOUNT COLLECTED| Cashier timestamp should = time()

All of these fields are on the same database (I have 2 linked tables: Customer demographics and appointments linked one to many by account # for the customer), and obviously, there's a lot more to it, but this is just a short example of what each department will enter. Appointments starts the appointment, so their timestamp will work, as they are starting new record. However, all of the following departments will be adding to this appointment record. When the other departments open their form with the fields in which they will be filling out, I want it to timestamp when they update the record as well as inserting their login "currentuser()" into the "updated by?" field for each department. For some reason, when I put time() into the event portion the field, it doesn't work. I tried it on dirty, on exit, after update, and it just doesn't update. Am I missing something?

View 5 Replies View Related

Recurrent Events Calendar

Jun 19, 2005

Hi guys, ..and girls ;)

i have a calendar that works like a charm, but i would like to add the possibility to add recurrent events in it.
for instance if a user has to perform a task at a choosen time schedule, it is shown in the agenda, like each week or each two weeks or each month.
Anybody any idea how i would aproach this problem or has a sollution?

Thanks

View 1 Replies View Related

Question About Events And Compilation

Aug 19, 2005

Hi everyone,

I try to implement a function that looks for broken references in my Access project, so that I won't need to modify the needed references for every workstation. Here's my problem: Where could I put the call of this function so that this code will run before trying to compile the forms and, as a result, avoiding the compile error that access pops-up when a reference is broken or missing.

Thanks in advance! :D

View 1 Replies View Related

Append Events By Date

Jun 23, 2007

I have a series of events that have a start date and an end date. How do I write an append query to append an event to a table as an individual event for every day in the given range?

View 2 Replies View Related

Order Of Events Help On Code

May 13, 2005

I have a start and end date fields plus a txt box called wDays.
I'm trying to make sure the user puts in both dates but end cant be earlier than start and vs versa....
If not provide a message as to which is missing....
If alls well do the calulation with the module "GetWorkDays"
I f everything goes bad, dont save the record at all!

I have this behind a cmdButton. Used to unhide the wDays field because it displays #error otherwise...and to do the calculation... with the BeforeUpdate
Private Sub Command8_Click()
If IsNull(Me.sDate) Then
MsgBox "Please enter a Start Date"
ElseIf IsNull(Me.eDate) Then
MsgBox "Please enter a End Date"
Else
If Me.eDate < Me.sDate Then
MsgBox "End Date cannot be earlier than the Start Date"
Exit Sub
End If
End If
Me.Requery
End Sub

Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim myDays As Integer
If IsNull(Me.eDate) Or IsNull(Me.sDate) Then
Me.wDays.Visible = False
Else
Me.wDays.Visible = True
myDays = GetWorkDays([sDate], [eDate])
Me.wDays.Value = myDays
End If
End Sub


Any help would be really appreaciated because I have tried many combonations of code placement to get it working correctly....

View 1 Replies View Related

Before And AfterUpdate Events Not Firing

May 26, 2005

Hello all:

I have a split, shared database in which the Before and AfterUpdate events on my forms are not working at all. I tried setting a breakpoint to verify this and, sure enough, they are not firing.

Does anyone have any clue as to why this may be occurring?

Thanks so much for the help. I have tried searching the forum with no luck.

View 2 Replies View Related

Cancelling Events In BeforeUpdate

Aug 15, 2005

Hello all,

I have a form where I want to validate enties before moving off the record.

I put my validation in the BeforeUpdate event of the form. If validation fails, then I set Cancel=True. So far, so good.

But if the user closes the form (either with my close button, or the standard close button), or presses 'Page down' to move to the next record, then even if validation fails, the form will close (or move record). What I want is for the user to be left with the form open, on the current record.

Can someoneon point me in the right direction ?

Thanks,
StepOne

View 1 Replies View Related

Datasheet Navigation Events?

Sep 27, 2005

Ii there such a thing as events fired by Navigation?
I have a Form displaying records in a Datasheet which has a Navigation
control and I need to be able to detect when the User selects various parts of this control.

View 1 Replies View Related







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