How to show a tick in prompt of an item in oracle forms 12c? - properties

I am working on oracle form 12c, an item is created, the prompt of the item is a tick. Here is the property of the item:
Prompt: P
Prompt font name: Wingdings 2
It displayed a tick correctly in design time, but ”P” in runtime.
How to show a tick in prompt for the item?
Many thanks

Set_item_property(‘block.item’, Prompt_text, chr(15696828));

Related

Dirty on command?

I have an Access 2010 application that has a form with a text box and a command button on it. Clicking the command button places a default value in the text box.
Question: When a user clicks the command button I can either:
Run an SQL update to save the new text box value in the data source that it is bound to plus set the me.textbox1.value to its new value, or
Run the same SQL update to save the new text box value in the data source that it is bound to plus do a form.requery?
Which is better? Would changing the bound value in the data source initiate a current event and an automatic requery?
Thanks in advance.
If you want to save the entry immediately, I would write the value to the text box, and do
Me.Dirty = False
to save the record in the bound form.
I see no point in doing this via SQL.
Would changing the bound value in the data source initiate a current event and an automatic requery?
No, that would actually be the worst method. The form wouldn't know about the changed data source, and once the user would start editing, he would get the "Write Conflict" message.
Your 1. would have the same problem.

Can not select an item in an unbound combo box in access

I have form that is not based on any table and I have a combobox on it that gets it data from a query (which hs id and text).
When I look at form in formview, I can open the dropdown section of combobox and it has values from the query, but I am not able to selct it. I tried to select it by any of the following ways:
1- Clicking on an item.
2- DBClicking on an item
3- Pressing ener on an item.
What is the problen and how can I fix it?
I am using Accesss 2003 on windows XP
Have you by accident set the Locked property to Yes? You can still drop down a locked combo-box but can't select any items.
See if your Form has property Allow Edits set to True.

How to set textboxes in order in VB?

I want to make textboxes and other input values in order, so I can move from one to another with "Tab" button.
At the moment I have 3 textboxes for date input and when I run the program it always set my cursor to 3rd textbox by default instead of 1st.
In Visual Studio, you'll want to set the Tab Order.
To do this, when in the Form Designer, go to the View Menu, then select "Tab Order"
You'll get a little index on all your controls. Simply click the controls in the order you want to move through them with the Tab Key and you'll be set. Be sure to turn off the Tab Order when you're done by going back to the View Menu and de-selecting Tab Order.
Good luck.
look into TabIndex and also, through your menu (depending on your VS version - i'm using 2010) - use View > Tab Order

Microsoft office Macro - Why is the document jumping around?

This if the first time I write a Microsoft Office Macro.
Basically, we have a few check boxes on page 1 and when one of them is checked, I need to auto-fill a text box on page 10 depending on which check box was checked. So each checkbox "on Entry" runs a macro.
Say the options are "Outstanding", "Exceeded" and "Unsatisfactory". When "Outstanding" is checked, that text box will be filled with "O", when "Exceeded" is checked, the text box will be filled with "E"
So the issue right now is, whenever I check the check box on page 1, suddenly, the document will jump to Page 10.
All I did was doing something like
oFFld("Text23").Result = "O"
I need it to stay on the same page! If I got rid of the above code, setting a value to the textbox, then nothing happens and I will stay on page 1.
What's going on? Any advice is greatly appreciated it.
ps:
it's word 2007
Never mind.
I was using an evaluation expression as in
If OFFld("Text23").Result = "blah" Then
whenever I do that, it'll jump to the page 10. Took care of it in another way. solved.
See answer in Suppress unwanted jumping/scrolling on Word 2013 VBA Script for details, but essentially you want to use the Bookmark object rather than the FormField object to access the result property.

VB in Access: Combo Box Values are not visible in form view but are visible through Debug.Print

Code in Form onLoad:
country_combo.RowSourceType = "Value List"
Code in a reset function:
Dim lListIndex As Long
With Me.country_combo
For lListIndex = .ListCount - 1 To 0 Step -1
.RemoveItem (lListIndex)
Next lListIndex<br/>
End With
Code to populate country combo:
*For n = 1 To numCountries*
*countryCombo.AddItem (countryRS.Fields("countryName"))*
*countryRS.MoveNext*
*Next n*
I'm having a problem that occurs AFTER the code to populate the country combobox runs. The values are there as I can run Debug.Print(countryCombo.Value) and it prints out the name of the selected country, but I can't see the values in the combobox at all. They're invisible, and as far as I know there is no visiblity property for specific items, unless I'm completely mistaken.
comboBoxError.png http://img110.imageshack.us/my.php?image=comboboxerror.png
I think you should probably use Access's GUI tools to do what you're looking for. In design mode, click on the field you are trying to populate, then click the "lookup" tab. You can then specify a table to populate the field with and your forms should automaticly update as well.
I've also seen what you describe here - as far as I can tell, it's a bug within Access (I was using 2007) that only occurs when you programatically mess with the contents of a combo box. It does not happen every time. The issue corrects itself if you highlight the text that is in the combo box.
I am experiencing a similar issue with Access 2003. Based on the selection of one combo box, the row source of a listbox is set to an SQL string Basically a SELECT DISTINCT [MyField_Selected] FROM MyTable. For some fields the values are visible in the list box and others it is not. The values are there however as I can access them via code. To make it more interesting it works fine in Access 2007.
Just found the resolution on another forum. Check the format property of the field(s) in question on the table. In my case, when Access 2007 created the table, it put an # format in there. I removed that and all works great!