Cancel Feature

Oct 12, 2006

Hi

After looking through the forums, i couldn' really see the answer i was looking for.
I have a form, that users can enter in details (with an auto-number created which is assigned to each record). Once they have entered the detials, theres a 'save' button which will save the record - which is fine. I also have a 'return' button which should return to the previous form and doesnt save the record. But as it stands, the record is saved when i click this return button. How do i make it so that the record isnt saved untill the save button is clicked? so if i return from the screen (pressing the return button), the record isnt saved (i.e. a cancel button).

Thanks in advance :)

View Replies


ADVERTISEMENT

Cancel Feature Help

Jan 31, 2006

Hi, I want my user to be able to "cancel" his entry. At first I tried just deleting the record they were working on. But that added numbers in the auto number "ID" field, and I also needed the feature for editing, so deleting wasn't an option. As of now I have something that works, but is kind of messy. I made a mirror "temp table" that I write the record to. If they "save" i append/update the record to the regular table, then delete it from the temp, if they "cancel" I just Delete it from the temp. Was wondering if there was a cleaner way to do this ?

View 5 Replies View Related

Cancel Record In Subform If Click Cancel On Parent Form Before Save

May 24, 2014

I have a form and a subform in it. I added New cancel button in the form so that the the user can cancel the record creation and no record will be inserted in the parent table.

But when details are entered in the subform (a datasheet) row records will be created in the subform table. what is the correct method or how to cancel these records if the user choose to click cancel button on the parent form.

View 5 Replies View Related

AutoLookup Or Maybe Other Feature HELP>???

Feb 23, 2006

I'm trying to establish a ticket/citation database for a college security office at which i work at. I have two tables, table 1 includes the ticket information (date of ticket, citation number, *tag #, amount etc.), table 2 includes Repeted offenders information such as (name, address, city, zip, phone number, student ID# etc.).
I would like to have a table or query(preferably table) which automatically matches tag#'s to student information as soon as a new ticket is entered, *if the student information is available.
Thanks a lot in advance

View 3 Replies View Related

Access Help (Lack There Of) Feature

Sep 23, 2006

Periodically, I use the Access (2000) Help Tab (as a last resort) to get an answer. In certain situations I get the message "Selection not associated with any topics." For example, this happens when I look up in Methods Reference either "Connection (ADO)" or"Fields (DAO)".

I assume that this issue may be caused by not having a reference file checked under Tools in the VB window. Specifically references to DAO and ADO help files. I Have the "Microsoft ActiveX Data Objects 2.5 Library" and "Microsoft DAO 3.6 Object Library" checked. Also based on Allan Brown's (http://allenbrowne.com/tips.html) website, I do not appear to be missing any references. Obviously something is missing. Any thoughts?

Update (9/29/2006)DAO Language Reference (http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/office97/html/output/F1/D2/S5A25F.asp)

View 10 Replies View Related

Zoom Feature In A Form

Jan 1, 2015

I would like to add a zoom feature to a form. If I size the window down to the point where it cuts off some of the fields, I enabled the vertical and horizontal scroll bars for the user to navigate throughout the form to see everything they need to. However, is there a way to size the contents in the form down, in other words, zoom out so even if I size the window down, I can see everything in the now smaller window?

View 6 Replies View Related

Import Feature Not Working Properly...

Sep 12, 2005

Hey all, I have a strange problem that I can't seem to find the solution for...

At my work we have a number of computers running W2k with Office 97.
We daily have to import excel spreadsheets into Access.

This is never usually a problem as obviously as soon as you click import the import spreadsheet wizard appears.

But on one particular machine it doesn't.

Basically on this computer Access will import the excel file, but won't bring up the wizard that lets you say what to import, whether the first row contains a header, the data type for each field etc, it just asks you to select what sheet you want, then imports it, no options.

Now the ironic thing is that usually this is not a problem as the file is still imported without any problems, but the other day we had a file that once imported was all messed up, all fields all over the place.

When done again on a different computer there were no problems so I'm assuming that this peculiar way of importing is to blame for messing up the data.

Does anyone know how I can resolve this? I have tried dragging the accwiz.dll over the regsvr32.exe and it says it's registered successfully, and I have checked that it is the correct version number, what am I missing?

It would make more sense if it just didn't import, then you could better understand how to fix it, but it's the fact that it does import, just not in the 'usual' way that bothers me. How can I make it bring up the proper import spreadsheet wizard?

Kind Regards
rd_boon

View 1 Replies View Related

How Does The Quick Search Feature Work?

Dec 20, 2006

I need to implement a Quick search feature in my employee application.

So that when any text is typed into the textbox, it searches the db for a match:

e.g.
firstname
lastname
ss#
employeeId
deptId
officelocation
deptname

It returns the record in the employee table that consist of the text typed in the search box. Most websites have this quick search feature (blanket search..is that what it's called?) and a link for advanced search, where they can select specific fields to search.

View 4 Replies View Related

Command Button Feature Not Working

Mar 24, 2007

I was trying to incorporate the changes suggested by a member of this forum into my Form. I opened the Form in Design View. I clicked the Command Button and placed the mouse at the insertion point. The command button also appeared. Thereafter, nothing happened. Earlier, whenever I placed a command button, it asked for action to be performed in relation to that command button. But now nothing happens and I don't know what to do. Please tell me how I can bring back the feature.
Thanks.

View 2 Replies View Related

Trouble With Export Feature In Access

Sep 6, 2005

I have a form whose fields are calculated based off VBA code, including fuctions, SQL, etc. Because of the nature of my form, I cannot save the calculations to a table before exporting to and excel spreadsheet.

When I use the File>Export feature of Access and save to and Excel format, I am not able to change the format of my numbers in Excel. For example, I have tried to highlight some of my exported numbers, right-click, and change the format to currency in Excel (or even decimal places). In order for excel to change the format, I have to select the cell, place my cursor in the edit window, and hit enter.....then the format will change.....is there any way to avoid this?

Please let me know if this isn't clear, and I'll attempt to explain it better.

View 5 Replies View Related

General :: Use Feature To Split Database

Jan 22, 2014

i have created a database and just use the feature to split the database. i then set a password on the back end database. however now when i use a macro to open a form in the front end it won't open the form and just says incorrect password.

View 1 Replies View Related

Access 2007 - Compact And Repair Feature

Dec 30, 2007

Does anyone know where the Compact and Repair feature is to be found in Access 2007? It was on the Tools menu in Access 2003, but I can't find it in 2007!

Thanks,

Gary

View 1 Replies View Related

Modules & VBA :: Integrating Sms Feature Into MS Access 2013?

Jun 18, 2013

I'm currently working on a project which requires integration of sms feature in ms access 2013.

The sms provider which i use for sending sms is smsglobal.

View 1 Replies View Related

Modules & VBA :: Drag And Drop Feature Added To Databse

Nov 10, 2014

I am in the process of trying to create a DragNDrop feature in the Access database that I've built. I have 3 employee with several different txt boxes all side by side and I need to be able to drag and drop the job from one to another.

I need to create a class module to do this but my problem is I don't know how.

View 7 Replies View Related

General :: Work Offline Feature In Split Database?

Feb 20, 2013

Any way to "work-off-line" in a split database, and then sync the data when one is done working?

View 9 Replies View Related

General :: Web Database - Create Search Feature For Just 2 Of Fields

Aug 13, 2014

I have a web database that I am trying to create a search feature for just 2 of the fields. The search is for a certain date and also a shop are the 2 fields I would like to have the search run for.

Once the search has been run I would like to generate it into a report.

I have already created the report/ form and the query. I am not sure where I need to go from here. I have created the from with the date and also a combo box for the list of the shops and then a button that says search that will go to the report. I just need it to show all the particular items that show the date and or shop. If you leave them both blank it will run a report and show everything. Then if you just put a date in it will run a report with just that date or the same with the shop.

View 9 Replies View Related

List Feature Based Upon What A User Previously Typed?

Nov 20, 2013

I have a subform containing maintenance logs for pieces of equipment, viewed as a Datasheet.

I have a field called Comment accepting text. Since comments are similar, it would be nice to have a drop down list so the user can select what was previously typed in other records and then edit it from there, similar to how Google or search engines in its search text box generates as part of its suggestion list the previous searches after typing in the first few matching characters.

I tried looking through, but is there a property that does this?

View 3 Replies View Related

Access 2000 To 2003 - Feature No Longer Functioning Properly

Dec 12, 2005

I have built a rather extensive database using Access 2000. When I install it on an Access 2003-enabled machine, the first time it is opened, the user is presented with the following errorbox:

"An error occurred and this feature is no longer functioning properly. Would you like to repair this feature now?"

At this point, clicking "Yes" results in an update the installation of Access 2003. Then the database must be opened manually again. Then, the following is displayed:

"Module not found."

Closing the database at this point and then opening it again results in a normally functioning database.

I have several questions:

1) What is the feature that is no longer functioning properly?
2) What is updated when the installation exec runs?
3) What module is not found? I assume this is one of the VBA modules that I've created, but I've check all 62 of them and they all seem to be there available.
4) My first guess was a reference problem, but I've checked the references used and all are available, as far as I can tell. These are the ones that I have referenced: VBE6.DLL, MSACC9.OLB, DAO360.DLL, STDOLE2.TLB, MSCAL.OCX, MSADO25.TLB, MSO9.DLL.
5) After getting the first error - the one about nonfunctioning feature, I clicked "no" to the repair now question. This does nothing except the database remains open. At this point, I opened the code and tried to compile, but I get the "module not found error". I likewise tried to set a breakpoint in one of the first modules and I get the same result.
6) I even tried to copy the forms, queries, tables, and reports into a blank database with no references and no other extraneous code and received the same result.

This site has been extremely helpful in the past and I am really relying on you guys again for the same stupendous help now.

Forever in your debt,

Tom

View 5 Replies View Related

Use Auto Complete Feature When Typing Word In Middle Of Field

Feb 26, 2014

I'm working with a DB to enter orders for picking. I have an item list that I'm linking to when entering orders, and bringing in the data from the item list such as item location etc.

It's setup right now that when I type the first couple of letters into the item field it automatically brings up the matching items and if I click enter it completes the item and brings in the other fields from the item list.

Example: If I type in 'tom' I get back 'tomato', 'tomato sauce' etc. and when I choose the right one and hit enter it fills up the rest of the required info such as item location.

What I would like it to do is have the auto complete also check for middle words.

Example: when I type 'alm' it returns 'almonds', 'almond milk', but don't return 'container almonds' or 'container roasted almonds' etc.

View 1 Replies View Related

Modules & VBA :: Treeview Feature - Determine Exact String Width (in Pixels)

Dec 12, 2014

I am working with the Access Treeview feature and I'd like to align the different elements in my nodes exactly below each other.

Therefore I need exact distances (if string is longer then XY, cut short, if shorter, extend to XY).

Of course I cannot work with len() and fill with spaces because letters have different widths.

Is there a way to determine the exact width of a string? e.g. in pixels?

View 7 Replies View Related

Cancel, Escape Et Al

Mar 9, 2005

Using Access 97, I have a single-form allow-additions form where a couple of bound fields are auto-populated 'on current' and a couple of other bound fields are left to be populated by the user (me!).

At the end of an input session, I can press ESC and then close the form OK. But if I forget to press ESC and try to close the form, I have an invalid incomplete record on screen.

How do I indicate that the new record isn't wanted? I have tried stuff like
If Me!txtRequiredBoundField = Null then
SendKeys "(ESC)"
End If
to no avail.

Thanks in advance.

View 2 Replies View Related

Cancel And Undo

Jun 1, 2006

Hello All,
I am finding this one difficult so felt I should post my issue.
I have status field on my form. It is a bound field.
A combobox - inactive, active.
I wanted the field to do the following when changed
If change then msgbox = Please enter reason in activity notes
a vbYesCancel
If they select it calls the activity notes form - this portion works.
If they select cancel I tried making the field do
form.field.undo (Me.statusid.undo) - something similar
Cancel = True
to reset the field to the original state.
This fails and says my object is not valid
I would be happy to take any suggestions . As always thanks in advance.

View 1 Replies View Related

Cancel On Subform??

Dec 23, 2004

I am having a problem with my cancl button on my form. this form has a subform. any changes cancel correctly on my main form. the problem is when there is a change on my subform and then is cancelled.. any ideas anyone? thanks!

View 5 Replies View Related

Cancel Command

Jan 25, 2005

I am trying to get my program to cancel a send e-mail command if certain things aren't filled out. Instead it is supposed to pop up with a message and then put the pointer in that field. The message box pops up, but the e-mail command is not cancelled. Can someone please tell me what I am doing wrong?

Private Sub SubmitAddCmd_Click()
On Error GoTo Err_SubmitAddCmd_Click

Dim stDocName As String
Dim strEmail As String
Dim strMailSubject As String
Dim strMsg As String
Dim strCopy As String
'Make sure MMS Job# is entered
If IsNull(MMSJob) Then
MsgBox "Please enter the MMS Job#"
[MMSJob].SetFocus
Cancel = True
'Make sure Client's name is entered
ElseIf IsNull(Client) Then
MsgBox "Please enter the Client's name"
[Client].SetFocus
Cancel = True
'Make sure job name is entered
ElseIf IsNull(Job) Then
MsgBox "Please enter the job name"
[Job].SetFocus
Cancel = True
'Make sure CSR name is entered for this job
ElseIf IsNull(CSR) Then
MsgBox "Please enter the name of the CSR for this job"
Cancel = True

'Make sure date job submitted button was clicked
ElseIf IsNull(Submitted) Then
MsgBox "Please click on the 'Date Job Submitted' button"
'[SubmittedCmd].SetFocus
Cancel = True
'Make sure mail date was entered
ElseIf IsNull(MailDate1) Then
MsgBox "Please enter a mail date for this job"
' [MailDate1].Value
Cancel = True
End If

'E-mail booking sheet to scheduling office in snapshot format
stDocName = "BookingRpt"
strEmail = "jhutton@merklenet.com;jsayers@merklenet.com"
strCopy = "rgarneriii@merklenet.com;"

strMailSubject = MMSJob & " " & Job

DoCmd.SendObject acSendReport, stDocName, acFormatSNP, strEmail, strCopy, , strMailSubject

Exit_SubmitAddCmd_Click:
Exit Sub

Err_SubmitAddCmd_Click:
MsgBox Err.Description
Resume Exit_SubmitAddCmd_Click

'Add new record
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.GoToRecord , , acNewRec


End Sub

learnasugo

View 2 Replies View Related

Need To Cancel An Event

Mar 24, 2005

I dont want to remove the close button in access, but i cant figure out a way to cancel the quite event if there is dirty data.

View 1 Replies View Related

Cancel Report With SubReport

Jun 15, 2005

I have a Report linked with a SubReport. I would like to cancel viewing this Report if my SubReport Has No Data.
i tried this code but the report just shows up. Any Ideas?

Private Sub Report_Open(Cancel As Integer)
On Error GoTo Err_Trapper
If Reports![qryRepCurOrgProjsSR].Report.HasData = 0 Then
Cancel = True
End If
Err_Trapper:
MsgBox Err.Description
Exit Sub
End Sub


Ok i got an error message. Yoy entered an expression that has an invalid Reference to the hasData property.

Ive tried using a text bpx on my main report and putting a control source as

=IIf(qryRepCurOrgProjsSR.Report.HasData,0,"Nothing")
Then in my Report Open Event i put the code below. But it fails me still.

If trim(Me.MyText) = "Nothing" Then
MsgBox "The Report Is Cancelling....."
Cancel = True
Exit Sub
End If

View 3 Replies View Related







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