Questions tagged [openform]

32 questions
12
votes
7 answers

OpenArgs is Null issue

I am using the OpenArgs parameter to send a value when using DoCmd.OpenForm: DoCmd.OpenForm "frmSetOther", acNormal, , , acFormAdd, acDialog, "value" I then use Me.OpenArgs inside the opened form to grab the value. It sometimes sends a Null value…
lamcro
  • 6,069
  • 18
  • 57
  • 70
6
votes
3 answers

WPF version of Application.OpenForms

I have an application in which I will have to get at another WPF window which is open. In WinForms, I was able to use: MainWindow main = (MainWindow)Application.OpenForms["MainWindow"]; To be able to access the the form. Now in WPF it does not…
Jacob Saylor
  • 2,371
  • 1
  • 31
  • 46
3
votes
4 answers

collection was modified enumeration operation may not execute

Okay, so I want to open a new form if it isn't already open. So I check for the form based on the Title or text of the form. Now, so far it works, as in the form opens and if it is already open, it just brings it to the front. But my problem being,…
Dr Archer
  • 348
  • 1
  • 3
  • 14
3
votes
1 answer

Access VBA OpenForm Grouping and Sorting

I have a form that is used for data entry. We have to go back through and add data to these records. Is there a way to pull up the form that groups the records by field "A" and sorts by field "B"? This would essentially order the forms A1-1, A1-2,…
3
votes
1 answer

Access VBA Open all records on new form, but show specified record

I have a form with ID numbers, and buttons that are supposed to open up another form with the relating record. In addition to that specific record being shown, i need all of the records to be opened because my form needs to have working Next and…
user2478684
  • 33
  • 2
  • 4
2
votes
1 answer

Boundary assignment in openFOAM

I created the mesh shown in the image below using snappyHexMesh. I have assigned boundaries in blockMesh, but they have been removed after running snappy. My question is how to create boundaries like inlet/outlet to the mesh shown in the image.…
Moe.A
  • 81
  • 10
2
votes
3 answers

How to open a form at a specific record in Access

I have a form with records for individual people with a button to view/edit a persons clearances. When I finish editing the clearance and press the Back button I want the original form (Basic Personal Information) to open at the record I have just…
hello123
  • 951
  • 2
  • 15
  • 25
2
votes
1 answer

New record in subform based on ID of main form

First I want to say that I'm a beginner in Access, and I will appreciate every bit of help I can get. I have created a form showing records from one of my tables with three subforms. The record and the subforms has a one-to-many relationship. I am…
Anders
  • 633
  • 2
  • 11
  • 21
1
vote
1 answer

Opening form with subforms with whereCondition

I have a form with values dateFrom and dateTo. On click of button i want to open a new form which contains two subforms. One of the subforms shows filtered records. It shows the records that have note_date in range between dateFrom and…
jenshon
  • 23
  • 4
1
vote
1 answer

MS Access VBA - somehow not getting OpenArgs passed, always NULL

This seems like a really simple thing to do, and I believe I'm coding it correctly - but I get me.openargs as NULL for some reason. Calling code in a button click event on form1: Private Sub Command0_Click() DoCmd.OpenForm "frmGetLetter", , , ,…
1
vote
1 answer

Form doesn't open as the active window

I have a main MDI form in my application and a login form. I'm opening my application like this. I want to open the login as the active form in which user should not be able to click any control of the MDI parent form while my login form is open. I…
CWW
  • 65
  • 1
  • 6
1
vote
1 answer

MS Access - opening a form with a new record and inserting a value from a previous form

I have a form in an MS Access database which lists Orders with an Order Number with one order per page. At the bottom of the form there is a button which opens another form, to add an item for the order. I am trying to use vb in MS Access to take…
user566577
  • 11
  • 1
  • 2
1
vote
2 answers

How to Navigate between Forms using Buttons?

I am trying to create a simple record storage application but for some idiotic reason C++ is refusing to let me navigate back to my default frmview.h Form, after adding the record. This is the code that I am trying to…
RopinKain
  • 23
  • 3
0
votes
1 answer

why it is not throwing "Collection was modified; enumeration operation may not execute" exception

I have a logout menu option in my MDI application. On log out I want to close all open forms. currently i am using following code snippet to achieve this; For Each f As Form In My.Application.OpenForms If f.Name = Me.Name Then For Each…
Riju
  • 566
  • 7
  • 19
0
votes
1 answer

MS Access 2007 OpenForm method, can't get the where clause to produce the correct result

I can not get the OpenForm method to open a form with the correct record loaded. I'm going to do my best here to provide the details: The 'source' form is based off Table A, and it is read-only. A button on the source form is being used to open a…
s2cuts
  • 193
  • 2
  • 3
  • 13
1
2 3