Setting Form Properties...

Jul 6, 2006

I have a form that is intended to be used for both data entry and to edit/delete records.

The form properties are set to:
AllowFilters = YES
AllowEdits = YES
AllowAdditions = YES
AllowDeletions = NO
DataEntry = YES

When a user opens the form from a menu they are given the choice for NEW, EDIT or DELETE.

If the user chooses NEW, the properties remain as above

If the user chooses EDIT or DELETE the form should open to a specific record as chosen on an interim form.

I have been using the following code to open the form for EDIT:
stLinkCriteria = "[fldID] = " & Forms!frmsearchresults.fldID
DoCmd.OpenForm "frmJobInfo", acNormal, , stLinkCriteria, , acFormEdit

However, the form continues to open in Data Entry mode.

I have a public variable that is set to NEW, EDIT or DELETE that can be used to trigger code...

Where should the form properties be set to make sure that the form opens correctly?

Any help would be appreciated.

Thanks!

View Replies


ADVERTISEMENT

Forms :: Setting Form Properties From Another Form Gives Nothing?

Aug 23, 2013

So I have two forms: Af and Bf

In Af, when a button, Abtn, clicked, it'll run

Code:
Me.Visible = False
DoCmd.OpenForm "Bf", , , , acFormEdit
Forms![Bf].Form!Blabel.Caption = Me.Atxtbox
Forms![Bf].Form!Bcombox = Me.Atxtbox

Then Af lost from view and Bf appears in form view, with Blabel and Bcombox show the value of Atxtbox.

BUT if I try something like this in Bf when an event happens

Code:
Me.Bcombox2.RowSource = "SELECT xx FROM tablexx WHERE yy = '" & Nz(Me.Bcombox) & "'"

Nothing will be shown in Bcombox2, because Me.Bcombox return Null. I know this from doing

Code:
MsgBox Me.Bcombox

and the message box will shows nothing. The same thing also happen with the Blabel's caption. In form view, it shows Atxtbox value, but when I accessed its caption's value, it returns Null.

What I wanna do is:

1) Open Af, insert value to Atxtbox

2) clicked Abtn, pass the value of Atxtbox to Bcombox

3) Af is closed, and Bf is opened

Why the null...?

View 5 Replies View Related

Setting Text Field Properties

Nov 11, 2006

Hi All,

I have only been playing with MS Access for a little while and I do not know all there is to know yet so I figured I come here to ask a question.

I use MS Access in web design and lately I have been experiencing a problem with my registration form which inserts new users into an MS Access database table.

Lately my registration form has become a target for spammers trying to inject spam in the form of html code into the password field of the online registration form.

I figured that I could deter this from happening by only allowing the letters A - Z and numbers 0 - 9 in the field and not allowing characters like < > and ? and ".

I assume I can do this with a validation rule but I'm unsure as to how I would go about setting this up. Limiting the field size to only 50 characters does not seem to work unfortunately.

Any help on how to set up a validation rule would be appreciated.

Thanks
Mechaworx

View 3 Replies View Related

Forms :: Setting Properties In A Subform

Mar 9, 2015

I am trying to get the properties of enabled and locked set in a continuious subform depending on a yes/no field in each record. I have tried using the answer in thread 160062, but this only works when it is not a subform (unless I have done something stupid!)If the main form is frmMain and the continuious subform is frmSub, where am I going wrong with this code which is in the subforms Class Objects?

Private Sub Form_Current() If Me.MaterialIssue = True Then CRMSignOffDate.Enabled = True
CRMSignOffBy.Enabled = True CRMSignOffDate.Locked = False
CRMSignOffBy.Locked = False Else CRMSignOffDate.Enabled = False
CRMSignOffBy.Enabled = False CRMSignOffDate.Locked = True
CRMSignOffBy.Locked = True End IfEnd Submany.

View 3 Replies View Related

Setting Database Properties (i.e., Revision Number)

Jun 29, 2005

Good afternoon,
I have finished completing the initial version of a database and am now ready to begin the testing phase. When looking at the database properties (Specifically - "Statistics") there is a "Revision Number", which is always blank. I expect some changes and would like to set the Version Number each time I make a revision. How do I set the "Revision Number" found under the Statistics tab from Database Properties which was pulled from the "File" button on the toolbar?

Thank you,

Scot

View 8 Replies View Related

Forms :: Setting Button OnClick Properties To A Function

Feb 3, 2015

I am try to open a form from another and set a button's OnClick properties to a function and I keep getting an error message..Run-Time Error 2450Cannot find the referenced form ..And this is the code I am using.

Case 113
DoCmd.OpenForm "frm_View_Defects_On_Screen", acNormal
Forms!frm_View_Defects_On_Screen.RecordSource = "qry_1st_Adv_Report_Combination_111"
Forms!frm_View_Defects_On_Screen.btn_Back_to_repor ts.OnClick = JumpBackToAdvancedReport()

I just don't want to create another form just for one button.

View 3 Replies View Related

Table Column Name Properties/Combo Box Head Properties

Dec 8, 2006

Hi, I would like to change the properties of either the column heads in a combo-box or the column names for tables. I don't think there's any way to adjust the column head properties, and I'm doubtful there's a way to change the column caption properties.

Some of my column titles are long, and I'd like to be able to word wrap them essentially. Anyone know if this is possible? Thanks.

View 5 Replies View Related

Sub Form Properties

Sep 13, 2006

Hi,

I have created a sub form and wanted to make it's background transparent and also be able to enter new data and change it on the form. I sat Data entry = Yes, but I still can't enter any data. And I can't find the Back Style property at all.

Any help how to do that will be very much appreciated.
B

View 1 Replies View Related

New Field Properties In Form

Jul 14, 2005

I created and new field and made the source "Unbound" so that it is not connected to the field I copied it from. How do I now make that the information I enter in the new field does not duplicate in all of the similar fields in other entries.

Specifically, my database is a database of employees and the field Title is "Active". If I enter "Yes" by one employee entry, all employee entries will then state "Yes" by the Active field.

How can I change the properties so that by some employees I can write "Yes" and by others I can enter "No".

I am not so familiar with Access so if you can be specific I would greatly appreciate it.

View 7 Replies View Related

Open The Same Form But Change Properties

Oct 28, 2005

I have a standard form but i would like it so that when a user clicks on the button from the main menu to open the form it changes the default view which i have set to data entry and change it to not data entry. Also another button to change its record source to a different query. Rather than make lots of different forms that have the same thing but for just different purposes.

I hope that makes sense?

Thanks

View 3 Replies View Related

Allow Changes To Form/control Properties To The Design Mode

Sep 20, 2005

Is there a way to allow edits to the properties of objects/controls only in Design view and not in the Form View?

View 2 Replies View Related

Properties Sheet Shows In Form View

Sep 20, 2007

A member of the Access User Group that I am associated with has asked a question that I can't answer.

In older versions of Access, when you went from Form Design View to Form View, if the Properties Sheet had been visible, it would be hidden in Form View. Since probably Access 2000, the Properties Sheet remains visible in Form View (if it was opened in Design View). Not a big problem, you say? Well, it is to this person, who is concerned about her users seeing the Properties Sheet and making changes in it.

Anyone know a way to defeat this behavior and hide the Properties Sheet in Form View?

Thanks.

View 2 Replies View Related

Modules & VBA :: Check Box To Alter Form Properties

Feb 3, 2015

I have a form called Orders.I need to lock this form once an invoice has been printed .

I have a check box on this form ,that if ticked should lock that specif order .

This is my Code:

Private Sub Form_Open(Cancel As Integer)
If Me.lockorder = True Then
Me.AllowEdits = False
End If
End Sub

The problem is it does nothing . I am using the open event of the form .The checkbox is called LockOrder.

View 4 Replies View Related

Quick Question Re:form Versus Table Properties

Jan 26, 2008

Hi

I know this is probably a silly question but I had a number of checkboxes in a table and had set their default value to be 0 however I did not do this in the table properties of these fields.

I can understand some things like formatting dates in a form but storing it differently in the table but why did access not automatically input 0s in all the fields where I did not check the box?

View 6 Replies View Related

Properties Sheet Window Does Not Appear In Design View Of A Form

Jul 13, 2012

I am working in the design view of a form, the controls properties sheet disappeared-gone and even clicking the properties sheet button it does not come back.

View 1 Replies View Related

Forms :: True / False - Form Properties Based On Field Value

Sep 10, 2014

On my form ECOs

When my text box RELNUM is > 0 I want form properties AllowEdits set to FALSE.

When RELNUM is null I want form properties AllowEdits set to TRUE.

This must be possible, but not entirely sure where to start.

Since I can scroll through records in this form I'm thinking I have to put an event in ON LOAD, bbut beyond that I'm at a lost.

View 11 Replies View Related

Forms :: Updating Form Properties Dynamically - Command Button To Display Mode

Apr 16, 2014

I have a single form which becomes either readonly or editable or addnew using a circular toggle switch. The toggle switch is activated by a command button and the caption of the command button is used as the display of the mode.

The SetAddModeBt is a separate command button that initiates the add mode. The problem is that various form or field properties when defined on the fly are not stored and they get lost when you open the form again. Look at the code below:

Code:
Sub tglEditBt_Click()
'-------------------------------------------------------------------------------
' Circular toggle button to change display mode of the form
' ReadOnly - Edit - Add
'-------------------------------------------------------------------------------
' On Error GoTo NotFound
Dim ForName As String
Dim strSQL As String
Dim FMode As String

[Code] ....

Here the first two cases fail when executing the last statement saying it is not supported.

View 5 Replies View Related

Forms :: Setting Focus To Control On Single Form Side Of Split Form

Jun 24, 2013

When I right click a row on the data sheet side of a split form an select "New Record" I want the curser to go to the first field on the single record side. I've placed this in the OnCurrent but it did no good.

Code:

If Me.NewRecord Then
Me!Descrfiption.SetFocus.
End If

Any way to set the focus to the single form Side of a split form?

View 4 Replies View Related

Setting Up A Pop Up Calendar In A Form

Apr 18, 2006

I need to include a pop up calendar in a form - could someone please point me in the right direction about how I go about doing this?

Also, I'd like the day to be selected and shown automatically when a date is selected - does anyone have any idea how I could do this please?

Any help would be much appreciated.

Thanks in advance

View 5 Replies View Related

Setting A Combo Box Value From Another Form

Feb 18, 2005

I have a form with a query based bound combo. The same combo can be found on another form which can be launched from the original form. I want to update the combo on the original form with the same value as the combo on the launched form (after update).

In my after update event I have the following code;

[Foms]![form1]![Combo1] = Combo 2

This doesn't seem to work (I don't get an error but Combo1 doesn't update).

Any ideas?

View 2 Replies View Related

Setting Up Form To Allow Decimals

Mar 23, 2006

I need to have a field on my form to accept the user keying in the number in this fashion: 200200.1234 but as I currently have it set it accepts only the 200200 portion of this part number. I am a beginner so I am sure this is an easy question for some of the pros out there.

As a footnote the table design has the bin no. as data type - text and I added an input mask of 000000.0000;0; the field on the form is a combo box. Maybe that will make a clear picture for you.

Thanks in advance for your assistance.

View 5 Replies View Related

Setting Default Value Within Form

Jul 25, 2006

Hi, im new to the forums - this is my first post.

On a form i have a text box which holds the date that a file batch was taken to be processed. Each file holds the date of when the batch it originated from was taken. At the moment for ease of use the 'Default Value' of the text box is set to the batch's date.

I want to set it up so i can change the default value of the cell, so that when a new batch is to be processed the new date becomes the default value.

I am invisaging a button which brings up another form with a text box into which the new date can be put. when the form is saved and closed, the date recieved cell on the master form assumes the new default value.

gawd... methinks that was an awful explanation.

please help!

View 3 Replies View Related

Setting Form Sizes

Nov 17, 2004

Hi,
I am a new member, who has been reading these postings for several weeks, hoping for a few quick answers, but no luck.

I have several issues on form size.

The first is that some of my forms open OK, but they change the form size of the form that opened them. My main form is maximized. When I open a child form, not maximized, the main form, and the open Access windows, such as the DataBase form and any open Tables, Queries, Reports, etc all become non-maximized.

The main form has the dimensions of the last-opened form .mde files, which leads me to believe that there is some Access option that crosses project or database lines. I cannot find it.

If I maximize the main form with the child form open, Access maximizes the child form also. If any form is open in Design View, the Properties window may be on top of everything. As the controls I need are seldom visible in these small windows, I spend much effort resizing windows.

What do I need to do to have a maximized "Switchboard" and smaller child windows/Forms???

View 2 Replies View Related

Setting Query Value From Form

Nov 11, 2013

I am trying to access the same query/report from different forms. For example I have a StudentAttendanceForm where users select a StudentID and then open the report. The query criteria for ID# is [Forms]!

[StudentAttendanceForm]![StudentID].

Can I access this same report from an event on another form. I'm thinking that if I can some how assign the StudentID from the form I want to access the report from, to the criteria on the StudentAttendanceReport Query, this is possible.

I am new to code but I am thinking something like:

SET [StudentAttendanceQuery]![StudentID] TO [StudentEnrollmentForm]![StudentID]
Open StudentAttendance Report

The StudentEnrollmentForm is the other form I want to access the report from

You may need a crystal ball for this one. Let me know what other info you need.

In general I am finding I am copying and tweaking queries to meet specific user needs. For example some want to access a single student and other need "batch" reports.

View 1 Replies View Related

Setting The Right Shape Of A Form?

Sep 25, 2015

When I am working on the Lesson 37 shown here:[URL]

I get to the point

Click the label that was added to the subform and press Delete (to remove the label). You may also need to move the subform and resize the tab sheet.

Now I assume the label to be removed is the original title of the subform or sbfVideos. That is the label that must be removed. It also says "You may also need to move the subform and resize the tab sheet." I will say that you do. My tab sheet is about 2 3/8 inches in width. I want to move it so the width increase to 3.25 as shown in the figure in the tutorial right after it says that you need to resize tab sheet.

When I grab the far right orange line and pull to the right the whole subform moves! That is not what I want.I merely want to increase the width of the form as I said above.Also in this narrow initial file when I switch to form, it cuts off parts, usually the Length. Of course, that is not what I want.

View 5 Replies View Related

Forms :: Unable To View Object Properties In Form Design View (Access 2010)

May 16, 2014

Why the ability to view the properties of an object within a form is not available when you double click on it in design view?

I was happily working away double clicking on a command button to edit some code when for some reason the next time I tried to edit it did not open up for me.

I was unable to access it even by right clicking on the object & selecting properties as that also appears to be disabled, not greyed out or anything but just does nothing when selected.

Have I inadvertently changed a setting somewhere that prevents the properties from being displayed?

View 3 Replies View Related







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