Change The Appearance Of A Record

Mar 13, 2008

I do not have a great knowledge of Visual basic but what I want to do is if a Field = Deceased I want to fill all fields of that record with a gray background Fill and make the font bold.

Any help please, remember I am not very knowledgeable of VB, so please treat me gently

View Replies


ADVERTISEMENT

Change The Appearance Of A List Box (MS Access VBA)

Feb 29, 2008

I currently have a list Box populated with some table data which has 9 columns and 255 rows.

I want to enhance the appearance of the list box i.e. 1 row of data will be blue, and next row will be white, and the next row blue again etc etc

How can I do this?

Kind Regards
Richard

View 2 Replies View Related

Forms :: Change Font Color And Appearance While Entering Data Into A Form

Mar 13, 2013

I would like to be able to change font color and appearance while entering data into a form (example: italicize a word). Is there any way to activate the font format while in a form?

View 2 Replies View Related

Access 2003 GUI Appearance

Dec 27, 2006

Have now graduated to 2003 from 97 and was wondering if there is a way to configure the main Access menu so it doesn't look like cartoons. I hate the default "bubble" look...I don't know any other way to describe it at the moment, other than to say that the menu looks XP-like. I want the normal menu and look. Thanks for any help here.

Edit: I should add that I'm running Access 2003 on a Windows 2000 machine.

View 6 Replies View Related

Database Appearance Changed

Mar 20, 2007

Hi,
Yesterday something wrong happened with my computer and got hanged!
I called a hardware person and he corrected the O/s. I am using XP (O/s) and office 2003. The hardware person told me that he has not changed anything in msoffice.
I have already created some applications in access 2003.
I have observed that the application swithboard appearace is changed and buttons on switch boards are looking now like access 2000. Then I checked for database window. The Table, Query, Form, Report etc are looking like access 2000 window.
I have captured present screen and my earlier screen how it was.
Can anyone help me to get original display of my swithboard ?

Thanks in advance..
Satish

View 2 Replies View Related

"You Cannot Add Or Change A Record Because A Related Record Is Required In Table....

Aug 1, 2006

Hi! Please help!!!

I'm currently building a bookings database and have encountered an alert message that I cant seem to rectify -

"You cannot add or change a record because a related record is required in the table 'Booking Details'"

Basically - I have a 'Customer Database' form that is linked (via command button) to a 'Booking Details' form. Within 'Booking Details' I have 2 sub forms - 'Booking Quote' and 'Booking Payments'. Both subforms are linked to the 'Booking Details' form by the 'booking ref' field with RI.

I have no problem updating information in the 'Booking Quote' subform, but when I try to add information to 'Booking Payments' it states the above message.

Can anyone please advise as to how I can prevent this happening? I'm slowly losing my mind....!!!

Many thanks,

Stacey

View 10 Replies View Related

Tables :: Cannot Add Or Change A Record Because A Related Record Is Required In Table

Oct 22, 2012

Currently I keep getting this error: "You cannot add or change a record because a related record is required in table"..My current tables are this:

Primary Table with persons info:

Primary Key - Auto number generated
Name
Address
Email
Phone

I have 4 other tables with use check boxes.

ex:

Table 1 - Geographic locations visited

ID - Auto generated
USA
CANADA
ASIA
ECT...

Table 2 - Languages Spoken
ID - Auto generated
Spanish
Chinese
English

Table 3 - Skills
ID - Auto generated
Hunting
Dance
Singing
Weaving

Is this not a genuine one-to-one relationship table? I mean No two people would have had visited the same places and speak the same language no? I tried to create a one to one relationship with the primary key to the auto generated ID of the child tables but I'm sure that is not how you do it. Also when I try to save the check boxes in my form and I close it and come back it doesnt save and is blank again. Is it because my form gets its information from a query that takes all the information from all the tables.

how I can get this to work properly? Am i to make use of a foreign key? I've read a lot about it online and watched youtube videos but I dont see why I need it here in this case. Is there a way to set the IDs in the child tables to be the ones from the primary table? Or do I have to use a foreign key and manually input the primary ID into them?

Or would it be better to have all these child tables in the primary table and have one large table instead? I just didnt do that because one of them has like 20 checkboxes with cities and locations

View 12 Replies View Related

Forms :: Cannot Add Or Change A Record Because A Related Record Is In Table

Feb 22, 2015

I have created three tables, all of them are connected by one-to-one relationship by same field, as you can see in the screenshot. and at the same time I have created three forms for each table. then I brought two forms in one remaining form. so whenever I entered data in first form and click on the next tab in which another form exist, it gives me this error: "you cannot add or change a record because a related record is in table".

View 2 Replies View Related

Cannot Add Or Change A Record Because Related Record Is Required In Table

Aug 12, 2013

I have a problem with my access form, it said "You cannot add or change a record because a related record is required in table". I have attached the access file.

View 14 Replies View Related

Forms :: Copying Command Button Appearance Properties To Other Command Buttons

Dec 17, 2013

I am rewriting an old Access 2003 database in Access 2010. When creating new command buttons, the current theme gives them a default appearance. I need to apply this appearance to old command buttons. I know there is a way to select the default button and apply its properties to others quickly. I have done it before but didn't write the process down .

View 2 Replies View Related

Can't Add Change Record Related Record Required

Jan 24, 2007

Can someone help me out by looking at my database I've been messing with it for 3 days and I can't figure it out.
I have 4 tables each are in a 1 to 1 relationship. From there I have a query that is for every field between the 4 tables. I then have a Tab Control form with 4 tabs and it uses the qryAll I have setup. when I enter on the form I can enter info on all 4 tabs but if I try to go to a different record I get the message "You can't add or change a record because a related record is required in tblScouts". I have tried so many different options. I had even posted yesterday trying to do the same thing but my tab controls had subforms on them. The_Doc_Man was helping me with that issue but I couldn't get that to go either.
Would anyone be willing to look at it for me and explain to me what I was doing wrong?

Rick

View 5 Replies View Related

Forms That Change By Record

Jul 7, 2005

Ok, so I was wondering if there was a way that only certain text boxes show up in a form based on the record.

For example, in my products form there is hardwood cost, trim cost, fireplace cost, but only some products apply to each of those. How do I do it so that if the record refers to a fireplace all you see is the fireplace cost textbox and not the other two?

Is it better to have seperate tables? But they are all products so I thought they all go in one table.

Also, I would like a box named retail on the form which is basically the cost x2, I know how to build the expression but I would like it if it would multiply the hardwood cost by 2, if there is no hardwood cost then it chooses the trime cost, and so forth for the fireplace cost. Also, sometimes there is a retail price that does not need any calculations at all..how do I incorporate this?

Is any of this possible?

thanks very much in advance for any help.

View 9 Replies View Related

Combo Box Value Needs To Change With Record...

Sep 22, 2005

There are two main methods of navigating around the top-level form on the database I am currently working on.

One is by a drop down menu listing GP practice names - so you can scroll down to "Dr Watson" for example and then all the subforms display the correct info.

The second way is by clicking on "Previous Surgery" or "Next Surgery". This is obviously a lot easier for data entry than having to use the drop down menu each and every time!

However there is a problem, in that when one uses the second method - the highlighted value in the combo box does not change! You can literally navigate through hundreds of surgeries, and though the address changes in the subforms etc "Dr Watson" is still proudly displayed in the combo box.

So we have a situation where it would be pretty easy for someone entering data to think they were on the correct record when in fact they were not, leading to errors in input.

Is there a way to force the combo box to "refresh" to the same value as the current record, effectively displaying the title?

Thanks
Gazz

View 2 Replies View Related

Requery Causes Record Change

Oct 6, 2005

I have a Form [customers], which contains a tabbed control and within one of the tabs I have a subform [Loans]. The Loans form is a "display only" form which lists clients loans. The loans can be updated or added to by a popup form which acts as a loan calculator. The "After Update" event of the popup form requeries the [customers] form when the amended loan record is entered via the selection of a new record on the popup. This has the effect of displaying the changed loans on the underlying [loans] form.

This works OK except that the record being displayed on the customers form immediately jumps to the first record in the customers table.

Has anybody any thoughts on why it would jump records after the requery and how I could stop it.

The requery code is as follows

Private Sub Form_AfterUpdate()
Forms![customers].Requery
End Sub

View 1 Replies View Related

Change The Sub Form’s Record Source

Nov 16, 2005

I have a main form that has 10 sub forms Each sub form’s record source is link to a different Query.

It takes more then a minute to open the form, (because it’s running the query for all sub forms). So I changed the sub forms source to SELECT * FROM tblTest WHERE false;

I also changed the main form. When the button on the main form is clicked, it’s adding the following:

Me.SubMySub.Form.RecordSource = "select * from qMyQuery"
Me. SubMySub.Form.Requery

However, after I close the main form, the sub form’s record source stays linked to
SELECT * FROM qMyQuery;

And will take the same long time again to open the main form.

Does anyone have any solution?

View 7 Replies View Related

Run A Macro On Change Of Record On A Form

Feb 23, 2008

Hi!
Is it possible to run a Macro each time the user changes the Record on the Form? If so how? :confused:

View 2 Replies View Related

Save Date Change Record

Aug 25, 2005

In a database I want to know the when the last change of a record has been made. I know one way to do it, but is not realy efficient:

I made the folowing sub

Private Sub addtime()
Date_of_Record.Value = Now()
End Sub

I call this sub if one of the 200+ :eek: inputboxes change:

Private Sub inputbox_change
call addtime
End Sub

Is there a more efficient way to save the date the record is last modified???

thanks in advance

View 3 Replies View Related

Change Record Showing In Form

Dec 14, 2005

Hello,

I have another question about ACCESS forms. With VBA, I want to change the record showing when I open a form.
I see there is a member "CurrentRecord" so I tried in the class module

Me.CurrentRecord = 2

I compiles but gives runtime error that is write-protected and cannot be changed. In the ACCESS help I read you could do it but HOW?

What should I do ( I am using ACCESS 97 ) ?!

Thanks in advance

Victor


PS : Is it true that VBA in newer versions of ACCESS has more features/functions etc?

View 7 Replies View Related

Change Color Of Record Selector

May 11, 2006

I set the white background color. But, the record selector is grey color. Can I change the white color of the record selector bar?

View 1 Replies View Related

Add Or Change Record Error Message

May 30, 2006

I am getting a "cannot change or add a record because a related record is required in table 'tblOrder'". I have scoured this site so forgive me if there is a post already on this.

My Order table has:

OrderID
CustomerID
SalesTaxRate


My Order detail table has:
OrderDetailID
PoNumber
TransDate
ProductID
OrderID
QuantitySold
QuantityReceived
QuantityOrdered
TransType

I wasn't sure if by this you could point me in the right direction as to why it is saying this. I am very new to Access so bare with me. Thanks

View 2 Replies View Related

Set Allowedits = False On Record Change

Nov 7, 2006

Hi

I was just wondering if it was possible to set the Allowedits setting to false whenever someone moves to a new record.

I currently have Allowedits = No by default on form open, and an "Edit" button which sets allowedits to Yes. However, I want the form to go to Allowedits=No again when the user scrolls to a new record.

Also, is there a way to set the form so that if someone makes changes to a record, the change doesn't automatically save unless you press a save button.

Thanks
Natasha

View 1 Replies View Related

Change Record Source On Report

Jan 14, 2005

OK. I have a report that I want to use as a master and use with about 4 different querys. In the report properties I've bound it to a query. I've tried for ages to change the record sources with on click command bottons on another form. I think things have become complicated because there's a subreport on the report I AND a there's bunch of code to make things invisible in the on page event of the report.

anyway, here's what I'm using:

DoCmd.OpenReport "rpt_master", acViewPreview
Me.RecordSource = "qry_rptPrintRollClass"

Is this the right way to do it??

Any ideas on how I can clean it up??

Thanks

Damon

View 2 Replies View Related

Change The Active Record On The Form

Jun 23, 2007

hi
I want to set record selector on the form with a record number that I am founding it with this code:
Code:Dim con As ADODB.ConnectionDim cmd As ADODB.CommandDim rst As ADODB.RecordsetSet con = New ADODB.ConnectionSet cmd = New ADODB.CommandSet rst = New ADODB.Recordsetcon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & CurrentProject.Path & "hazineh-bime.mdb" & ";Persist Security Info=False" cmd.CommandText = "select * from table1 where salp=" & Val(Trim(Form_mainhazineh.sal.Value)) & " and mahp=" & (Trim(Form_mainhazineh.mah.Value)) & " " Set cmd.ActiveConnection = con rst.Open cmd, , 1, adLockReadOnly If rst.RecordCount = 1 Then ' found the record else end if
I mean I want to change the active record on the form with another one .
how can I do it?

View 3 Replies View Related

Using Update Query To Change Record Value

Sep 12, 2007

I have a list of codes that need to be changed if it is part of the a list that need to be updated after being entered into the database. I created a function that holds the old values and what they need to be updated to. To get this accomplished on a form do I just need to write a Update query and then reference the query to the appropriate field I am trying to update with new codes for the 11 codes needing to be changed and leaving the other codes the same.

View 1 Replies View Related

Modules & VBA :: Change / Use Record Definitions?

Jul 13, 2013

As I proceed with my development I continue to rename fields. The effect of those renames is unclear to me. They seem to effect some things and not others.

What rules do I need to know about renaming the fields in my database and the effect on the forms I'm working on.

View 14 Replies View Related

Queries :: Percentage Of Change For Each Record

Dec 11, 2014

I'm new to this and I've created a report that shows evaluation scores before and after for some training we are delivering. The Query I've created works out the percentage of change for each record. The problem I'm having is that I can't now summarize these percentages for each instructor.

What I'm entering to retrieve the percentage score is:

=(Sum(IIf(IsNumeric([Percentage Change]),[Percentage Change],0)))/(Sum(IIf(IsNumeric([Percentage Change]),1,0)))

What i get back is as follows:

Before score = 2.85 (correct)
After Score = 4.22 (correct)
Percentage of Change = 55% (incorrect this should be 48% )

View 14 Replies View Related







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