Hi I currently have a splash screen with a 'play' button which generates a random number and loads up a new form. In this form I wish to use the random number that is generated in the splash screen but I am unsure how to use it in both.
Related
I've been spending a while learning access and I have a question that may or maynot be possible. Ive written code that moves between access forms by running queries, opening a new form and then closing the old one (with a back button on the new page to close down the form and re-open the old one) so that people can navigate between different pages.
However, I am now trying out a navigation pane and wonder if there is a way to switch the form shown within the navigation pane tab so that different panes have different forms that can be switched between quickly?
I am currently trying to use JS and puppeteer to take a screenshot of every url in my web app, as well as take a screenshot of every button that can be clicked. Is there a way to click each button without specifying the id? Not all of my buttons have an id and even if they did, I wouldn't want to have x number of page.click(id, options) for each button I have (which is quite a lot).
Thanks
I have tried going based off each className (this app is built using react) but this does not work. It will take a screenshot of the same buttons over and over. I believe because if page.click has multiple of the same options, it only chooses the first one and many buttons have the same styling classNames.
You could get an array of each element on a page, go through the elements with a for loop determine if it is a button, then click it. Then for each page you'd have to input each url in an array and then use a for loop to go through it.
Form.Move Method is not working for Split Forms
In my MS Access 2016 database, I have a lot of forms that open in dialog mode. The main Access window has no tabs. The main window displays one form and sometimes changes sizes when going to a different main form. The dialog style forms popup relative to the main window.
I use the Form.Move method to position and resize the forms relative to the location of the Access Main Application Window. The Move method works great! However, the move method seems to do nothing for Split forms.
I have also tried docmd.movesize since it does move and size split forms. It also works great, except that, in my situation, docmd.movesize positions the form relative to the Main Monitor's Top-Left corner and cannot use negative numbers. By "Main Monitor" i mean the monitor that is setup as the Main Monitor in Windows display settings.
DoCmd.MoveSize( _Right_, _Down_, _Width_, _Height_ )
Some of the users of my database use 3 monitors. They use their laptop as their main monitor and have it position below their two bigger monitors. Any of the desktop real estate above their laptop has negative "Down" location values as a paramater for DoCmd.MoveSize to apply. The Form.Move method handles negative locations wonderfully, but it isn't working for my Split Forms. For me, the DoCmd.MoveSize causes an error when using negative values.
The "Right" value could also be negative when the main monitor is position between the two bigger monitors.
Here are my current form settings. I am pretty sure I have tried every combination.
Pop Up = No
Modal = No
Default View = Split Form
Auto Center = Yes
Auto Resize = No
Fit to Screen = Yes
Border Style = Sizeable
The forms are opened with this code which overrides some of the setting above.
DoCmd.OpenForm "frmWorkGroupList", , , , , acDialog
Form Size code
DoCmd.MoveSize xPosMax, yPosMax, vWidth, vHeight
Me.Move Left:=xPosMax, Top:=yShiftTwips, Width:=vWidth, Height:=vHeight
I have searched for a good solution for many hours and I have tried everything I can think of. The only solution I can find online was to re-create my forms into sub-forms inside of main forms to simulate a split form. I don't wan to do that. I want Split Forms to work if possible.
Currently I am using DoCmd.MoveSize with a check for negative values. If there are any negative values for x and/or y I move to a default x and y location that will land on the main monitor.
Are there any solutions that will Move/Size Split Forms to desktop locations that have negative "Down" location values?
Thank all of you in advance!
Buddy Martin
I am working in some capital market application. It's designed using VB. Every time I have to search for the different screens and the fields and its navigation.
Can I get the list of all the screen names and the fields (Text fields or drop boxes) included in that screen and the navigation to that screen from the home page?
To get a list of all opened Forms: Use My.Application.OpenForms or Application.OpenForms (see How do I unload all open forms in VB.NET?). To get a list of all controls in a Form: Use the Controls property (see loop over all textboxes in a form, including those inside a groupbox).
I am creating a program which creates a number of different buttons depending on how many entries are in an access database, the buttons are creating fine however they are not being positioned correctly, is there an easy way to govern where they will be positioned ?
The buttons are going to be used to send a string of information to the COM port the string will vary depending on which button is pressed as each button has a name on it that has been taken from the database.
they need to be arranged like a table 7 by 4 however the issue i am having is that i cannot make the button go onto the next line when the previous line is full