0

This code is not complete, when you run it, time displays but after a few seconds it disappears. so I dont want time to disappear.

Secondly I want to add a button in the code named play/pause which I want, if pressed plays time from current system time and if pressed again, pauses time without disappearing.

Another thing, when you run this code on a mobile device, after compilation using the J2ME toolkit, should be able to display the button written in java on the mobile device.

I have attached the toolkit, which I use to compile the java code.

Note: you should have java installed before you install the toolkit

0

There are many ways to do this depending on what you need. If you are looking to find multiple records that match entered values, I would suggest looking at the Filter by Form feature. This turns your form into a criteria entry form where you can enter criteria for one or more fields and filter for matching records. If you just want to retrieve the one specific record that matches your criteria, you can use the Combobox wizard to create a Search combo (3rd option).

If you want more ideas try searching on Filters.

0

[QUOTE=Olsi009;834025]Howdy,
my friend is trying to write a program in VB 2008 and he is using an Access 2003 database.

he's having a hard time writing the code for a search option.

we write a string in a textbox and hit the SEARCH (kerko) button.
can you pleas help us to finish this?
I'd really appriciate it :)
cheers[/QUOTE]

How many tables do have Olsi009?

0

Hullo members am developing a cell phone app for my mobile device and I have a java code I have written to do this. I would like any body to help me complete it so that its complete and make the time and date not to disappear after some time. I also want to include a button that pauses as well play the time from the current time. Thanks

Here is the code

[code]import java.util.*;

import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;

public class DateTime extends MIDlet implements CommandListener {
private Form form;
private Display display;
private Command pause, resume, exit;
private Timer tm;
private Refresh refresh = new Refresh();
private boolean on = true; // Is 'clock' is running or paused?

public DateTime() {
super();

pause = new Command("Pause", Command.SCREEN, 2);
resume = new Command("Resume", Command.SCREEN, 2);
exit = new Command("Exit", Command.EXIT, 2);

}

public void startApp() {
tm = new Timer();
/* Your first part goes here ...

  • create the Form and Timer oblects
  • display the current time on the form, and
  • add the necessary commands or menu items.
  • leave the line above and below intact - they're for the timer
    */
    tm.schedule(refresh, 0, 1000);
    }

    public void pauseApp() {}

    public void destroyApp(boolean unconditional) {
    notifyDestroyed();
    }

    public void commandAction(Command c, Displayable s){
    /* Your third and last part is here ...

  • implement the command actions
  • make sure the commands Pause, Resume, & Exit do the right thing
    */
    }

    class Refresh extends TimerTask { ...

0

Hi members
that's the code I tried with my friend but we were all confused
please try to show us how we can deal with it.

public class TrafficLight { 
    int  currentState; 

    // Constructor that makes a red traffic light 
    public TrafficLight() { 
        currentState = 1; 
    } 

    // Advance the traffic light to the next state 
    public int advanceState() { 
        currentState = ++currentState % 3 + 1; 
        return currentState; 
    } 

    // Return the state of the traffic light (as a number from 1 to 3) 
    public int getState() { 
        return currentState; 
    } 

    // Set the state of the traffic light (as a number from 1 to 3) 
    // If the integer is out of range, do nothing 
    public void setState(int newState) { 
        if ((newState > 0) && (newState <4)) 
            currentState = newState; 
    } 

    // Return a string representation of the traffic light 
    public String toString() { 
        String[] colours = {"Red", "Yellow", "Green"}; 
        return colours[currentState] + " Traffic Light";
    } 
}
-2

Hi members,I would like to share knowlege in Java with you.
I have a problem which i request a solution for.
I want to design a GUI in java that displays four roads each having traffic
lights and these traffic lights have four colours(green, orange, and Red).
So I want these traffic lights to change colours every after 10 seconds with green
moving clockwise to all the four roads followed by orange and
finally Red. This code should allow me to click on any these lights and when I do so
the clicked traffic light should light up green all the rest light up red immediately.

0

Hullo Members, is there any one who can help me make a VB search code in MS Access 2003, I have a First names column and Last names column but I cannot make a search criteria that suits both first and last names incase one enters either of the two names(Firstname or Lastname).

I would also love to thank all members who have provided help to me for the last problem I had. I was really helped thank you very much.

0

Hi I have tried to use this code Dim con As New ADODB.Connection

    Dim tmp As New [U]ADODB[/U].Recordset
    Dim s As String

    con.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=K:\Database\db1.mdb"
    con.Open()
    s = "select * from add1"
    tmp.Open(s, con, [U]ADODB[/U].CursorTypeEnum.adOpenDynamic, [U]ADODB[/U].LockTypeEnum.adLockPessimistic)

tmp.AddNew()
tmp.Fields("ID").Value = T18.Text
tmp.Fields("Salutation").Value = T1.Text
tmp.Fields("Fname").Value = T2.Text
tmp.Fields("Mname").Value = T3.Text
tmp.Fields("Lname").Value = T4.Text
tmp.Fields("Degree").Value = T5.Text
tmp.Fields("Category").Value = T6.Text
tmp.Fields("Position").Value = T17.Text
tmp.Fields("Org").Value = T16.Text

tmp.Update()
MsgBox("Record Saved")
Exit Sub

but VB.NET doesnot recognise that format.
Am need of a search for my customers database too could any one help us out with that problem.